Vi
I'm not a power Vi user, it's not my main editor, but I still need it some time to time.
And I secretly dream of mastering it one day (but I don't have time, I'm too lazy for that).
So here are my (evolving) Vi cheatsheet.
Cursor Movement:
- w: Jump to start of next words (punctuation considered words)
- W: Jump to start of next words (spaces separate words)
- b: Jump to the begining of the word (punctuation considered words)
- B: Jump to the begining of the word (spaces separate words)
- 0: Start of line
- $: End of line
- {X}G: Jump to line X (e.g. 4G jump to line 4)
Edition:
- D: Delete from the cursor until the end of line
- C: Delete from the cursor until the end of line (and switch to insert mode)
- dd: Delete the entire line
- cc: Delete the entire line (and switch to insert mode)
- ggVG: Select all
- yy: Copy (Vi clipboard)
- p: Past (From Vi clipboard)