vim file.name
Enter before a command
shift+:
To exit any mode
esc
Enter Insert Mode
i
Exit Insert Mode
esc
Save
w
Move Right
h
Move Left
l
Move Up
k
Move Down
j
Move Foward a Word
w
Move Back a Word
b
Quit
:q
Save and Quit
:wq
To enter Visual Mode
v
To enter Visual Line Mode
shift+v
Open blank New File
vim
Save As
:w FileName.txt
Delete a line
dd
Delete Line and Preserve Whitespace
shift+d
Delete a Word and Enter Insert Mode
At start of Word Type
cw
Delete 5 Words
d5w
Change 3 Lines Down and Put into Insert Mode
c3j
Delete Text Within Tags
cit
Delete Text Within Curly Braces
ci{
Delete Text Within Double Quotes
ci"
Enter Visual Mode
v
Then Highlight Line
Copy
y
Paste
p
Cut
dd
Syntax Highlighting On
:syntax on
Syntax Highlighting Off
:syntax off
Line Numbers On
:set number
Line Numbers Off
:set nonumber
View All Options
:help option-list