Tip 2: Don't Repeat Yourself
Return to the top: <<Practical Vim>>
Example: append a semicolon at the end of a series of lines.
The most naive way:
A better way using the dot command:
Reduce extraneous movement:
Two for the Price of One
Compound Command | Equivalent in Longhand |
C
|
c$
|
s
|
cl
|
S
|
^C
|
I
|
^i
|
A
|
$a
|
o
|
A<CR>
|
O
|
ko
|