AnkiLab
Sign in
Download

Vim

Vim shortcuts and commands

Showing cards 1-20 of 113
Front
(vim) quit without saving
lang
Back
:q!
Front
(vim) undo, redo
lang
Back
u, Ctrl + r
Front
(vim) save and quit
lang
Back
:wq (or :x) (or ZZ)
Front
(vim) delete character under cursor
lang
Back
x
Front
(vim) motion: to the beginning of next word
lang
Back
w
Front
(vim) motion: to the end of this word
lang
Back
e
Front
(vim) motion: to the end of this line
lang
Back
$
Front
(vim) delete to the end of the line
lang
Back
d$ or D
Front
(vim) motion: to the beginning of the line
lang
Back
0
Front
(vim) delete this line
lang
Back
dd
Front
(vim) delete the next 3 lines
lang
Back
3dd
Front
(vim) insert line below
lang
Back
o
Front
(vim) move cursor to top / middle / bottom of the screen without moving the text
lang
Back
H (high)
M (middle)
L (low)
Front
(vim) move up/down one half-page
lang
Back
C-u
C-d
Front
(vim) go to line by number
lang
Back
<number>gg
Front
(vim) switch to insert mode, before/after current character
lang
Back
i
a
Front
(vim) switch to insert mode, at the beginning/end of current line
lang
Back
I
A
Front
(vim) alternative to d$ (delete until the end of the line)
lang
Back
D
Front
(vim) go to the beginning of the previous word (like w but previous)
lang
Back
b
Front
(vim) move forward / backward one word, but defining words with only whitespace (not other characters)
lang
Back
W
B
Showing cards 1-20 of 113