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 />
After doing this, when you make a typo of a word that is in the<br />
autocorrect.<strong>vim</strong> list, it will be corrected automatically.<br />
$ vi test-typo.txt<br />
thsi is acceptible<br />
[Note: Above line will automatically change to "this is<br />
acceptable"]<br />
When you want the expansion or spelling mistake correction to be stopped for<br />
a particular word, you can do the following inside <strong>vim</strong>. This is a temporary<br />
unabbreviation. If you want this to be permanent, remove the word either<br />
from ~/.<strong>vim</strong>rc or ~/autocorrect.<strong>vim</strong>.<br />
$ <strong>vim</strong> test-typo.txt<br />
:una US<br />
Hack 39. Record and Play Using Macros<br />
This hack explains how to perform record and play back macros inside Vim<br />
using an example.<br />
High level steps to record and play back a macro inside Vim.<br />
• Step 1: Start recording by pressing q, followed by a lower case<br />
character to name the macro<br />
69