Vim Commands Flashcards
What 3 ways can you save and exit?
ZZ :wq :x
Exit without saving
:q!
Go to beginning of current word
b
Go to end of current word
e
Go to start of next word
w
Move to column 15
15|
Move to the beginning of the next line
+
Move to the beginning of the previous line
-
Half screen up
C - u
Half screen down
C - d
Full screen up
C - B
Full screen down
C - f
Go to line 32
32G 32gg :32
Set current line to the top of the screen
z then return
Delete the next character
x
Delete the previous character
X
Delete the entire line
dd
Delete all the text to the right of the cursor till the end of the line
D
Insert after the end of the line
A
Paste after the current cursor position
P
Paster before the current cursor position
p
Indent selected block of code
>
Outdent selected block of code
<
Undo
u