- Select a column :
ctrl-V
- jump forwards to the start of a word:
w
- jump forwards to the start of a word (words can contain punctuation):
W
- jump forwards to the end of a word:
e
- jump forwards to the end of a word (words can contain punctuation):
E
- jump to the start of the line:
0
- jump to next paragraph (or function/block, when editing code):
}
- jump to previous paragraph (or function/block, when editing code):
{
- move back one full screen:
Ctrl + b
- move forward one full screen:
Ctrl + f
- move forward 1/2 a screen:
Ctrl + d
- move back 1/2 a screen:
Ctrl + u
- insert (append) after the cursor:
a
- join line below to the current one:
J
- change (replace) entire line:
cc
- change (replace) to the end of the word:
cw
- delete character and substitute text:
s
- redo:
Ctrl + r
- comment all lines:
Ctrl + v, GI//
or:%s/^/\///
- Go to first line:
gg
- Select till word appears:
v/foo
- Select current line and subsequent:
Shift+V n j
- Add in odd line:
:let i = 1 | g/^$/execute "normal i>item" . i | let i = i + 1
- Making a lits of numbers:
:put =range(11,15)
- marks