Go to the first, previous, next, last section, table of contents.

Changing Text

<count> r<char>
Replace <count> chars by <char> - no <esc>.
<count> R
Overwrite the rest of the line, appending change count - 1 times.
<count> s
Substitute <count> chars.
<count> S
<count> lines.
<count> c<move>
Change from begin to endpoint of <count><move>.
<count> cc
<count> lines.
<count> C
The rest of the line and <count> - 1 next lines.
<count> =<move>
Reindent the region described by move.
<count> ~
Switch lower and upper cases.
<count> J
Join <count> lines (default 2).
:[x,y]s/<p>/<r>/<f>
Substitute (on lines x through y) the pattern <p> (default the last pattern) with <r>. Useful flags <f> are `g' for `global' (i.e. change every non-overlapping occurrence of <p>) and `c' for `confirm' (type `y' to confirm a particular substitution, else `n' ). Instead of / any punctuation CHAR unequal to <space> <tab> and <lf> can be used as delimiter.
&
Repeat latest ex substitute command, e.g. :s/wrong/good.
#c<move>
Change upper case characters in the region to lower case.
#C<move>
Change lower case characters in the region to upper case.
#q<move>
Insert specified string at the beginning of each line in the region


Go to the first, previous, next, last section, table of contents.