- Repeat last changes: "." command can be used to repeat simple text changes in normal mode.
- Swap two characters: xp
- Swap two lines: ddp
- Switch case of characters:
- ~: switch case of character under cursor
- g~~: switch case of current line
- gUU: make current line uppercase
- guu: make current line lowercase
- gUaw: make current word uppercase
- guaw: make current word lowercase
- Buffer management:
- :ls list current buffers
- :b <any part of filename> <tab> change to relative buffer
- :b# change to the last buffer you used. Mostly, Ctrl-^ acts the same.
- :bn change to the next buffer in the buffer list.
- :bp change to the previous buffer in the buffer list.
Blogged with Flock
Tags: vim