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

You can check http://code.google.com/p/<strong>vim</strong>colorschemetest/ for<br />

screenshots of available Vim color schemes before downloading them.<br />

Hack 70. Edit Multiple Files in Tabs<br />

One efficient way of editing multiple files in a single Vim session is by using<br />

tabs.<br />

Open multiple files from the command line.<br />

$ <strong>vim</strong> -p file1 file2 file3<br />

The following screen shot shows three files opened in tabs<br />

$ <strong>vim</strong> –p helloworld.cc employee.txt /etc/passwd<br />

Fig: Three files opened in tabs<br />

107

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

Saved successfully!

Ooh no, something went wrong!