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 no<br />
To display line numbers,<br />
:set nu<br />
To unset the display line number option.<br />
:set nonu<br />
Hack 84. Default registers and their uses<br />
Anytime the text is deleted, copied, or substituted, it will be available in a<br />
register which you can access.<br />
There are default registers that store information as explained below.<br />
Register Name<br />
Description<br />
% Name of the current file<br />
# Name of the alternate file<br />
: Most recent executed command line<br />
/ Last search pattern<br />
“ Last used registers<br />
123