01.09.2014 Views

The Linux Development Platform Configuring, Using, and ... - Classes

The Linux Development Platform Configuring, Using, and ... - Classes

The Linux Development Platform Configuring, Using, and ... - Classes

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CH02.fm Page 39 Monday, October 7, 2002 8:09 PM<br />

VIM 39<br />

Table 2-13 Navigating VIM<br />

Action<br />

Hjkl<br />

W<br />

E<br />

Comm<strong>and</strong><br />

Left, down, up, right<br />

Move one word forward<br />

Move one word backward<br />

( ) Move to previous, next sentence<br />

{ } Move to previous, next paragraph<br />

It is also possible to scroll the text on the screen without moving the cursor from its current<br />

position. Table 2-14 lists some of the more common comm<strong>and</strong>s.<br />

Table 2-14 Folding Mode Comm<strong>and</strong>s<br />

Action<br />

^F ^B<br />

^U ^D<br />

^E ^Y<br />

Comm<strong>and</strong><br />

Scroll one screen forward, backward<br />

Scroll one half screen up, down<br />

Scroll one line up, down<br />

Insert Mode<br />

<strong>The</strong>re are numerous ways to enter Insert mode depending on where in the buffer you<br />

wish to insert text <strong>and</strong> how much of the text you wish to change. For example, it is possible to<br />

insert text at the beginning of the current line, at the end of the line, to change only the letter<br />

or word at the cursor, or to change text from the cursor to the end of the line. All of these comm<strong>and</strong>s<br />

are accomplished by simple one- <strong>and</strong> two-letter comm<strong>and</strong>s. When you press the “i”<br />

key, VIM enters Insert mode <strong>and</strong> starts inserting the next typed characters at the current cursor<br />

position. If “a” (append) is used to enter Insert mode, the insertion point is the character following<br />

the cursor.<br />

Pressing “I” will insert characters at the beginning of the line, <strong>and</strong> “A” will append characters<br />

to the end of the current line. <strong>The</strong> “o” character opens the line after the current one for<br />

inserting text, <strong>and</strong> the “O” key creates a new line above the current one <strong>and</strong> positions the cursor<br />

to enter new text.<br />

Table 2-15 lists these comm<strong>and</strong>s.

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

Saved successfully!

Ooh no, something went wrong!