14.06.2014 Views

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 />

:digraphs<br />

For example, to insert copyright symbol, do the following in insert mode.<br />

CTRL-K Co<br />

From :help diagraphs<br />

Digraphs are used to enter characters that normally cannot be entered by an<br />

ordinary keyboard. These are mostly accented characters which have the<br />

eighth bit set. The digraphs are easier to remember than the decimal<br />

number that can be entered with CTRL-V (see |i_CTRL-V|).<br />

Bonus Hack 11. Vim ex Mode<br />

From normal mode, Press Q to go to the Vim ex mode.<br />

You can go to the ex mode when you want to execute commands in : mode<br />

continuously.<br />

Once you’ve pressed Q you’ll stay in ex mode ( : mode ) until you decide to<br />

come out of it.<br />

Enter Ex mode<br />

Q<br />

Exit Ex Mode<br />

162

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!