14.06.2014 Views

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 />

these articles will make you very productive. following activities can be<br />

done very easily using <strong>vim</strong> editor.<br />

a. source code walk through,<br />

b. record and play command executions,<br />

c. making the <strong>vim</strong> editor as ide for several languages,<br />

d. and several other @ vi/<strong>vim</strong> tips & tricks.<br />

Text after substitution: (changes in bold)<br />

Lot of vi/<strong>vim</strong> tips and tricks are available at thegeekstuff.com. Reading<br />

these articles will make you very productive. Following activities can be<br />

done very easily using <strong>vim</strong> editor.<br />

a. Source code walk through,<br />

b. Record and play command executions,<br />

c. Making the <strong>vim</strong> editor as ide for several languages,<br />

d. And several other @ vi/<strong>vim</strong> tips & tricks.<br />

Hack 91. Search across Multiple Files using <strong>vim</strong>grep<br />

You can search for a search term across multiple files using <strong>vim</strong>grep<br />

command. You can execute <strong>vim</strong>grep from inside the Vim editor as shown<br />

below.<br />

The following example will search for the search term Jason inside all files<br />

ending in .txt in the current directory.<br />

:<strong>vim</strong>grep jason *.txt<br />

By default <strong>vim</strong>grep will jump to the first file that contains a match. Use :cn<br />

to jump to the next match.<br />

137

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

Saved successfully!

Ooh no, something went wrong!