14.06.2014 Views

vim 101 hacks

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Buyer: xiujuan lu (luxiujuan@gmail.com)<br />

Transaction ID: 85W16630AD8515549<br />

Vim <strong>101</strong> Hacks<br />

www.thegeekstuff.com<br />

Fig: Keyword completion in Vi / Vim using CTRL-X CTRL-N<br />

Hack 96. Automatic Line Completion<br />

If you want to insert a copy of an existing line, type the first few<br />

words/characters of the line, and then press the Vim shortcut keys “CTRL-X<br />

CTRL-L”, which will display all the lines matching that pattern.<br />

CTRL-X CTRL-L<br />

143

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!