Vim Motions Notes
Rst Utility Helpers
Section titled “Rst Utility Helpers”- yypVr- being on current line will assist with quickly formatting rst files by adding ---- with correct character count
Recording a macro
Section titled “Recording a macro”- qa begin recording macro into register a
- 3j enter command
- q to end recording
To use - @a will repeat command above
Horizontal Nav Motions
Section titled “Horizontal Nav Motions”- 0: first char
- ^: first non-blank char
- $: end char
g_
: end non-blank char- f{character}: moves us to that char
- Use ; to get next match and , to get the previous
- t{character}: moves just before next occurrence
Add in Operator to motions
Section titled “Add in Operator to motions”Structured {Operator}{count}{motion}
- df’ delete everything until occurrence of ’
- dtX deletes everything up to X
- dTX deletes everything backward up to X
- d/hello delete everything until hello
- Inputting . allows you to repeat the last change
VI Mode Bash Prompt
Section titled “VI Mode Bash Prompt”set -o vi