[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: VI Tricks
On Tue, 16 Apr 2002, James L. Burke wrote:
> On Mon, Apr 15, 2002 at 09:48:07AM -0500, Flood Randy Capt AFCA/TCAA wrote:
> >
> > It's been my experience that vi rocks and that everyone that uses it seems to know at least one trick that I do not know that is really useful and cool. So, if you use vi, please share some useful commands that I might not know.
One of my "tricks" that I used while learning vi was that when I found
that I was using a single command repeatedly, chances are using the
capitalized version of that command did what I wanted better (e.g. dw v/s
D, y v/s Y, etc)
Just something to play with while you're learning.
Oh, and in bash, at the command prompt, set -o vi will make your current
xterm run in vi mode. You can /foo to search for commands you entered with
'foo' from your history, jklm through your history file (and words) and
use standard operators (c, d, etc) on the command line. Very useful when
you set some environment variable a few hundred commands ago and don't
want to up arrow lookin for it :-)
--
Kara Pritchard Phone: 618-398-7360
Director of Exam Development http://www.lpi.org/
--
-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.