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 />
:set tabstop=4<br />
If you want Tab to be converted to 4 spaces,<br />
specify it with tabstop.<br />
:retab<br />
Convert all the tabs in a files to spaces based on<br />
expandtab and tabstop option.<br />
:set shiftwidth=4<br />
Specifies the number of spaces that should be used<br />
when you indent a line.<br />
:set ai<br />
In insert mode, Vim will automatically indent new<br />
lines (when you hit return) to the same indent level<br />
of the current line.<br />
Use ^D at the beginning of the new line to decrease<br />
the indent by characters.<br />
93