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 />
To paste the content from the register, execute the following.<br />
“p<br />
For example, to paste the name of the file as text inside the file, do the<br />
following in normal mode.<br />
“%p<br />
Hack 85. Numeric Registers and Recovering Deletes<br />
The following are a few important points about registers.<br />
• There are 10 registers available that are numbered from 0 through 9<br />
• Most recent yank (copy) is stored in register 0<br />
• Most recent deletion is stored in register 1<br />
With each deletion, Vim shifts the previous content from 1 to 2, 2 to 3 and so<br />
on.<br />
Hack 86. Vim Directory Operation<br />
You can use Vim editor as a file manager to navigate the filesystem and<br />
perform various operations as explained in this hack.<br />
# <strong>vim</strong> DIRNAME<br />
124