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 />
Chapter 5: Basic Text Manipulation<br />
Hack 20. Insert or Append Text<br />
Insert Text<br />
The following explains various methods to insert text into a file.<br />
Key<br />
i<br />
Description<br />
Insert text at the current position<br />
I<br />
Insert text at the beginning of the line<br />
Key: Uppercase I as in India<br />
o<br />
Insert a new line after the current line and insert<br />
text<br />
Key: Lowercase o as in orange.<br />
O<br />
Insert a new line before the current line and insert<br />
text<br />
Key: Uppercase O as in Orange.<br />
:r FILENAME Insert another file content into current file after<br />
the current line<br />
:r! COMMAND<br />
Insert output of a command into current file after<br />
the current line<br />
49