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 26. Paste before or after the copied Line /<br />
Word / Others<br />
Key<br />
p (lower-case P)<br />
Description<br />
Paste immediately after the current cursor<br />
location<br />
P (upper-case P)<br />
Paste immediately before the current cursor<br />
location<br />
If you’ve performed a few delete operations and if you would like to paste<br />
one of those deleted words, use the following method.<br />
First, view the register with the following command.<br />
:reg<br />
Recent deleted content will appear in 0 - 9 register. Make a note of the<br />
register number of the deleted word that you would like to paste.<br />
If you would like to paste the word from the register number 3, execute the<br />
following.<br />
"3p<br />
For example, here you can see all the registers “0 – “9 containing the text<br />
that was deleted earlier.<br />
55