Vim

From Halfface
Revision as of 21:59, 21 June 2008 by 10.111.222.9 (talk)
Jump to navigation Jump to search

Useful commands.

Switch to last file

:e#

yank buffers

vi /etc/{passwd,group,shadow} /tmp/newfile
"a2yy       # Yank two lines to yank buffer a.
:n          # Go to next file.
"b2yy
:n
#c2yy
:n
"ap         # paste yank buffer a. 
"bp
"cp