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: Vim File name completion using CTRL-X CTRL-F<br />

Hack 98. Dictionary Completion<br />

Enable the dictionary in Vim by adding the following line to ~/.<strong>vim</strong>rc.<br />

$ cat ~/.<strong>vim</strong>rc<br />

set dictionary+=/usr/share/dict/words<br />

This is a great feature when you stumble for the correct spelling for a word<br />

that you are typing. After typing the first few characters, Press the Vim short<br />

cut key CTRL-X CTRL-K to display the matching dictionary words.<br />

145

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

Saved successfully!

Ooh no, something went wrong!