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 />
z. (lowercase z<br />
followed by period)<br />
Redraw the screen with the current line under<br />
the cursor at the middle of the screen.<br />
Hack 7. Navigate to Top and Bottom of the File<br />
You can jump to the beginning and end of the file quickly as shown below.<br />
Navigation Key<br />
Description<br />
:0 Go to the top of the file – method 1<br />
gg Go to the top of the file – method 2<br />
1G Go to the top of the file – method 3<br />
:$ Go to the bottom of the file – method 1<br />
G Go to the bottom of the file – method 2<br />
Hack 8. Navigate to N th Character, N th Percentage of<br />
a File<br />
You can navigate to N th character or N th percentage of a file as shown below.<br />
Navigation Key<br />
Description<br />
50% Go to the 50th percentage of file.<br />
Jump to the middle of the file.<br />
28