vim 101 hacks
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Buyer: xiujuan lu (luxiujuan@gmail.com)<br />
Transaction ID: 85W16630AD8515549<br />
Vim <strong>101</strong> Hacks<br />
www.thegeekstuff.com<br />
• If you are at the beginning of “192.168.1.3 devserver” and press w (to<br />
go to next word), you’ll go to the first . (period). Because 192 is<br />
considered as a word.<br />
• If you are at the beginning of “192.168.1.3 devserver” and press W<br />
(to go to next WORD), you’ll go to d in “devserver”. Because the<br />
whole 192.168.1.3 is considered as a WORD.<br />
Fig: word Vs WORD<br />
Hack 3. Position cursor at specific location within a<br />
line<br />
Instead of just using l and h to navigate within a line, you can use the<br />
following to position cursor at various locations within the same line.<br />
Navigation Key<br />
Description<br />
0 (zero) Go to the starting of current line<br />
$ (dollar sign) Go to the end of current line<br />
^ (caret sign)<br />
g_<br />
Go to the first non blank character of<br />
current line<br />
Go to the last non blank character of<br />
current line<br />
25