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 />
Hack 82. Set Vim Options<br />
There are lots of set options available in Vim editor. The following are some<br />
of the key options.<br />
Option<br />
:set nu<br />
Description<br />
Show line numbers<br />
:set ic<br />
Ignore case when searching<br />
:set ro<br />
Disable writing of files by Vim<br />
:set wm=n<br />
Set right-most margin column, after which Vim will<br />
wrap words as best it can<br />
:set ai<br />
Turn on auto indentation<br />
:set all<br />
Display all settings of your Vim session<br />
:set list<br />
Displays invisible characters. For example, ^I for<br />
tab, $ for end of line.<br />
:set hlsearch<br />
Highlight matched patterns<br />
:set incsearch<br />
Activates Incremental search mode<br />
Hack 83. Unset Vim Options<br />
Add the prefix "no" before an option to unset it. Do the following to turn off a<br />
particular option.<br />
122