Recently found a few interesting short hand for Vim
namely:
ctr-r, ctr-i/ctr-o
ctr-r will reapply the changes you made
ctr-i/ctr-o will allow movement of the prev/next document position
e/ge will move the end of next/prev word
. will re-apply the last vim action
:reg will show all clipboard registers
and to apply them just use "#p where # is the number of the register
to do a global search and replacement with confirmation:
:%s/old pattern/new pattern/gc
to search for the current word under cursor:
use *
To use a specific register for a copy or paste operation, simply type "a before the command for the operation, where a is the register you want to use.
In a shell,
cd - is also an interesting short hand to move to the old working directory
it is easier than pushd.
Friday, November 27, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment