The VI Editor

VI is a standard text editor found on LINUX/UNIX systems. With VI you can create new files or edit existing files. To start VI you should type vi filename where filename is the name of a new or existing file which you wish to edit. Use the arrow keys to scroll through the document. The following is a list of the commands which are used in VI to edit documents. For a more complete description of the use of the VI editor, check out the section concerning VI in the LINUX Users' Guide written by Larry Greenfield

This is a partial list of the common VI command. To enter one of these command, press the ESC key then the command key which is listed below:

COMMANDWhat it does
aappends text after the cursor
Aappends text at end of the line
bback up to beginning of word in current line
ddelete line
emove to end of word
Ggo to end of file
hmove the cursor to the left
Hmove the cursor to the top of the screen
iinsert text before the cursor
Iinsert text at beginning of line
jmove the cursor down
kmove the cursor up
lmove the cursor to the right
oopen a line below the current line
Oopen a line above the current line
rreplace character at cursor with the next character typed
uundo the last change made
Urestore current line, discarding changes
wmove to begining of next word
xdelete character at cursor
Xdelete character before cursor
yYank (or coy) operator
Ymake copy of current line
$go to end of line
:q!quit VI without saving changes
:wqwrite changes to file then quit VI