VI Editor
38 Basic System Configuration Guide
a Enter insert mode, the characters typed in will be inserted after the current 
cursor position. A count inserts all the text that was inserted that many 
times. 
i Enter insert mode, the characters typed in will be inserted before the 
current cursor position. A count inserts all the text that was inserted that 
many times. 
o Enter insert mode in a new line below the current cursor position. 
Table 13: Moving the Cursor Within the File
vi Command Description
^B Scroll backwards one page. A count scrolls that many pages. 
^D Scroll forwards half a window. A count scrolls that many lines. 
^F Scroll forwards one page. A count scrolls that many pages. 
^H Move the cursor one space to the left. A count moves that many spaces. 
^J Move the cursor down one line in the same column. A count moves that 
many lines down. 
^M Move to the first character on the next line. 
^N Move the cursor down one line in the same column. A count moves that 
many lines down. 
^P Move the cursor up one line in the same column. A count moves that 
many lines up. 
^U  Scroll backwards half a window. A count scrolls that many lines. 
$ Move the cursor to the end of the current line. A count moves to the end 
of the following lines. 
% Move the cursor to the matching parenthesis or brace. 
^ Move the cursor to the first non-whitespace character. 
( Move the cursor to the beginning of a sentence. 
) Move the cursor to the beginning of the next sentence. 
{ Move the cursor to the preceding paragraph. 
Table 12: Inserting New Text  (Continued)
vi 
Command
Description