VIM39
It is also possible to scroll the text on the screen without moving the cursor from its current
position. Table 2-14 lists some of the more common commands.
Insert Mode
There are numerous ways to enter Insert mode depending on where in the buffer you
wish to insert text and how much of the text you wish to change. For example, it is possible to
insert text at the beginning of the current line, at the end of the line, to change only the letter
or word at the cursor, or to change text from the cursor to the end of the line. All of these com-
mands are accomplished by simple one- and two-letter commands. When you press the “i”
key, VIM enters Insert mode and starts inserting the next typed characters at the current cursor
position. If “a” (append) is used to enter Insert mode, the insertion point is the character fol-
lowing the cursor.
Pressing “I” will insert characters at the beginning of the line, and “A” will append char-
acters to the end of the current line. The “o” character opens the line after the current one for
inserting text, and the “O” key creates a new line above the current one and positions the cursor
to enter new text.
Table 2-15 lists these commands.
Table2-13 Navigating VIM
ActionCommand
HjklLeft, down, up, right
WMove one word forward
EMove one word backward
( )Move to previous, next sentence
{ }Move to previous, next paragraph
Table2-14 Folding Mode Commands
ActionCommand
^F ^BScroll one screen forward, backward
^U ^DScroll one half screen up, down
^E ^YScroll one line up, down
Next Page >>
<< Previous Page
Back to the Table of Contents