On Tue, Mar 17, 1998 at 05:42:43PM -0500, Scott McDermott wrote:
> "Peter Chr. Hansen" <[EMAIL PROTECTED]> on Tue, Mar 17, 1998 at 07:06:50PM
>+0100:
> > I have seen people using vim commands on the commandline like using esc k
> > and then use j and k to go through the command history,
use:
set -o vi
you can also use / N & n to search the command history
command line can be editted using a subset of vi commands including
AaIihlCcDSsXx^~0$ and a handy one is v which copies the command line
to a temp file and starts up vi in full screen mode. When you save
and exit the command will be executed. If you do not want to execute
the command place a # at the left end of the linei turning it into
a comment line or delete the line before exiting.
While in full screen mode you could save the
command to a file with: w filename or w >> filename
paul
--
/-------------------\\ //---------------------------/
/ C h i p p e w a \\ // alley Technical College /
/ 620 W. Clairemont Ave \// Eau Claire, WI 54701 USA /
/-----------------------------------------------------/
/ Paul F. Almquist, Instructor - DBMS,OS,Networking /
/ Computer Information Systems Dept HP-UX/Linux!! /
/ [EMAIL PROTECTED] Voice:715-833-6386 /
/ http://cis.chippewa.tec.wi.us/~almquipf /
/-----------------------------------------------------/
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.