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

75% Go to 75% of the file.<br />

Jump to 3/4 th of the file.<br />

100l Navigation key is: 100 followed by l.<br />

Go to the 100 th character from current position<br />

100<br />

Navigation key is: 100 followed by empty space<br />

Another way to go to the 100 th character from<br />

current position<br />

:goto 25<br />

Go to 25 th character from the start of file<br />

25| Navigation key is: 25 followed by pipe symbol<br />

Go to 25 th character in the current line<br />

Hack 9. Line Number Navigation<br />

The following are command for line number setting inside Vim editor.<br />

Command<br />

:set number<br />

Description<br />

Display line numbers<br />

:set nu<br />

:set nonumber<br />

Do not display line numbers<br />

:set nonu<br />

29

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

Saved successfully!

Ooh no, something went wrong!