14.06.2014 Views

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

Fig: Basic Navigation Keys<br />

Navigation Key<br />

j<br />

k<br />

h<br />

l (lower-case L)<br />

Description<br />

Down one line<br />

Up one line<br />

Move right one character<br />

Move left one character<br />

As a historical note the h, j, k and l keys had arrows on the ADM-3A terminal,<br />

which was commonly used with early UNIX systems. This is why those keys<br />

were chosen for navigation.<br />

Note: If you are not comfortable with j, k, h and l keys, you can still use<br />

arrow keys to move around.<br />

Vim Configuration File (~/.<strong>vim</strong>rc)<br />

Local Vimrc<br />

All configuration options that you define inside Vim are valid only for that<br />

particular Vim session.<br />

17

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

Saved successfully!

Ooh no, something went wrong!