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 49. Execute One Vim Command in Insert Mode<br />
When you are in insert mode, if you want to execute a single Vim command,<br />
you don’t need to press to switch to command mode.<br />
To execute single Vim command in insert mode.<br />
CTRL-O<br />
The following is the sequence:<br />
• You are in insert mode typing characters.<br />
• Press CTRL-O, which will temporarily take you to command mode.<br />
• Press any Vim command (for example, 5j to jump 5 lines)<br />
• You are automatically back in insert mode after the single Vim<br />
command is executed.<br />
Hack 50. View Current File Details<br />
When you are editing a file, press CTRL-G or gCTRL-G to view the file details<br />
as shown below.<br />
View basic file details.<br />
CTRL-G<br />
"test.txt" [Modified] line 3 of 6 --50%-- col 1<br />
86