Vim: Difference between revisions
Jump to navigation
Jump to search
(New page: Useful commands. ==Switch to last file== :e#) |
No edit summary |
||
Line 3: | Line 3: | ||
==Switch to last file== | ==Switch to last file== | ||
:e# | :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 |
Revision as of 21:59, 21 June 2008
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