[Navigation] [Input Modes] [Files] [Cut, Copy, & Paste] [Repetition] [Search & Replace]
j Down One Line
k Up One Line
h Left One Character
l Right One Character
0 Beginning of Line
$ End of Line
w Forward One Word
b Beginning of the Current Word
e End of the Current Word
H Top of Screen (think HIGH)
L Bottom of Screen (think LOW)
M Middle of Screen
G Bottom of File (last line)
1G Top of File (first Line)
i Insert to the Right of the Cursor
a Append after the Cursor
I Insert at the Beginning of the Current Line
A Append after the End of the Current Line
O Start Text on a New Line Above this one
o Start Text on a New Line Below this one
r Overstrike one character upon the Current Character
R Overstrike
cw Change Word
C Change from Here to End of the Line
~ Change Case of a single character
:w Save the Current File
:x Write to Current Filename and Quit
:x filename Write to a New Filename and
Quit
:q! Quit without saving
:e filename Edit a File without exiting VI
:r filename Read in a File after the cursor
x Delete One Character
dw Delete One Word
dd Delete One Line
d followed by any of the Navigation
Tools will delete all the text between the current cursor position and the
navigated place.
y Copy the current line
mx
d`x
y`x
p PASTE!!!!!!
5dd deletes 5 lines!
n Repeat Last Find
N Repeat Last Find in the Opposite Direction
:gs/word/newword/ Replace Word with New
Word in the WHOLE File