Here is a quick reference for advanced insertion, formatting, and filtering commands/shortcuts.
Command/Shortcut | Result |
---|---|
g + ? + m | Perform rot13 encoding, on movement m |
n + ctrl + a | +n to number under cursor |
n + ctrl + x | -n to number under cursor |
g + q+ m | Format lines of movement m to fixed width |
:rce w | Center lines in range r to width w |
:rle i | Left align lines in range r with indent i |
:rri w | Right align lines in range r to width w |
!mc | Filter lines of movement m through command c |
n!!c | Filter n lines through command c |
:r!c | Filter range r lines through command c |