vim 101 hacks
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Buyer: xiujuan lu (luxiujuan@gmail.com)<br />
Transaction ID: 85W16630AD8515549<br />
Vim <strong>101</strong> Hacks<br />
www.thegeekstuff.com<br />
Chapter 12: Additional Features in Vim<br />
Editor<br />
Hack 71. Repeat an Operation N number of times<br />
The "repeat operation" capability works with virtually all Vim operations. For<br />
example, to move down 10 lines at a time, you can type 10j as shown below.<br />
10j<br />
The following are few repeat commands.<br />
Repeat Command<br />
@@<br />
Description<br />
Repeat previously executed macro<br />
n<br />
Repeat the search in same direction<br />
N<br />
Repeat the search in opposite direction<br />
. Repeat the last edit command<br />
@:<br />
Repeat the last command line<br />
Hack 72. Undo and Redo Action<br />
Single Undo:<br />
To undo one change, do the following:<br />
109