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: Omni completion pop-up menu for HTML files<br />

Hack <strong>101</strong>. Automatically offers Word Completion as<br />

you type<br />

When you type something in Vim editor, word_complete.<strong>vim</strong> plugin will<br />

display only one relevant word, and if you like what is displays, you can press<br />

TAB key to accept it’s suggestion.<br />

This is a completely non-intrusive and very effective plugin.<br />

Install and Configure Vim Word Complete plugin<br />

Download word_complete.<strong>vim</strong> plugin from <strong>vim</strong>.org as shown below.<br />

# if the directory does not exist already<br />

$ mkdir –p ~/.<strong>vim</strong>/plugin<br />

152

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

Saved successfully!

Ooh no, something went wrong!