This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
notes:vim_cheat_sheet [2026/07/27 20:51] 114.119.135.37 old revision restored (2008/06/05 00:46) |
notes:vim_cheat_sheet [2026/07/31 13:47] (current) 8.216.43.46 old revision restored (2026/06/09 03:21) |
||
|---|---|---|---|
| Line 19: | Line 19: | ||
| * **f F** - find character, Find character backwards | * **f F** - find character, Find character backwards | ||
| * **t T** - stop before next/last instance of character | * **t T** - stop before next/last instance of character | ||
| + | |||
| + | * **()** - goto start or end of sentence | ||
| + | * **{}** - goto start or end of pargraph | ||
| + | * **%** jump to matching brace | ||
| + | * **gg/G** - goto start or end of buffer | ||
| + | * **0 $** - goto start or end of line | ||
| + | * **nG** - goto line n | ||
| + | * +/-** - goto next/ | ||
| + | * **H M L** - gopto top / middle / bottom of screen | ||
| ===== Basic Editing ===== | ===== Basic Editing ===== | ||
| Line 26: | Line 35: | ||
| * **R** - overwrite | * **R** - overwrite | ||
| * **dd cc** - delete or change line (enter insert mode) | * **dd cc** - delete or change line (enter insert mode) | ||
| - | * **d c** - delete or change | + | * **d c [n] X** - delete or change |
| * **o O** - open new line for inserting below or above | * **o O** - open new line for inserting below or above | ||
| + | * **x s** - delete character, delete character and start inserting | ||
| ===== Copying & Pasting ===== | ===== Copying & Pasting ===== | ||
| Line 38: | Line 48: | ||
| * **"* "+** - Use system clipboard as register | * **"* "+** - Use system clipboard as register | ||
| - | ===== Searching ===== | + | ===== Searching |
| - | + | ||
| + | * **/ ?** - Start incremental search forwards or backwards | ||
| + | * **n N** - next match forwards or backwards | ||
| + | * ** * #** - Search for next/ | ||
| + | * **m[a-z]** - set a bookmark | ||
| + | * **`[a-z]** - jump to bookmark | ||
| + | * **' | ||
| + | * **[A-Z]]** - global bookmarks (not buffer-specific) | ||
| + | * **.** - bookmark of last modification | ||
| + | ===== Assorted ===== | ||
| + | * **q[a-z]** - start recording macro | ||
| + | * **qq** - stop recording macro | ||
| + | * **@[a-z]** - play macro | ||
| + | * **@@** - play last played macro | ||