The
lists the most frequently used commands for the vi editor as a reference.
The table below lists some frequently used commands for the vi editor. Pleas note that all the commands
except
must be typed in COMMAND mode. This means if the editor is in another mode than the
COMMAND mode, you have to press the
key first.
Commands starting with a colon are so called 'ex commands' which are entered in the command / status line
at the bottom of the terminal window. As soon as you press the colon character in COMMAND mode, the
cursor jumps to the bottom line and lets you edit the command. Press
to complete the command or
to return to COMMAND mode without changing anything.
Mode changes
Leave the INSERT mode, revert to COMMAND mode.
i
Go to INSERT mode
Cursor movements
k
Up
j
Down
h
Left
l
Right
0
Start of line
$
End of line
gg
First line of the text
G
Last line of the text
Block / range commands
v
Start visual mode, this marks the block start
y
Yank the marked block into the paste buffer.
x
Yank the marked block and delete it from the text.
P
Paste the contents of the buffer before the cursor position. te
(C) 2020, SatService GmbH
www.satnms.com
VLC-IM-2002 Page 37/39