Vim Learning (1)
Trick 01
Use .
to repeat last change, with count replaced with [count].
dd
,.
x
,3.
Use @:
to repeat last command-line [count] times.
Use :normal
to execute normal-mode command.
Trick 02
Compond commands:
Compond commands | Equavilent commands |
---|---|
A | $a |
C | c$ |
s | cl |
S | ^C |
I | ^i |
o | A\Enter |
O | ko |
Trick 03
- Use
;
to repeat lastest f, t, F, T [count] times. - Use
,
to repeat lastest f, t, F, T in opposite direction [count] times.
Trick 04
Use Ctrl+r, = to do arithmetic operations in insert mode.