Site Tools


Hotfix release available: 2026-07-14a "Mort". upgrade now! [57.1] (what's this?)
New release available: 2026-07-14 "Mort". upgrade now! [57] (what's this?)
Hotfix release available: 2025-05-14b "Librarian". upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian". upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian". upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos". upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum". upgrade now! [54.2] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
notes:vim_cheat_sheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
notes:vim_cheat_sheet [2026/07/20 15:13]
47.79.206.70 old revision restored (2026/06/21 11:13)
notes:vim_cheat_sheet [2026/07/24 14:04] (current)
47.79.206.25 old revision restored (2026/06/21 17:02)
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
 +  * **; ,** - repeat or reverse last t/T/f/F
 +
 +  * **()** - 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/previous line
 +  * **H M L** - goto top / middle / bottom of screen
  
 ===== Basic Editing ===== ===== Basic Editing =====
Line 26: Line 36:
   * **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 to end of line
   * **d c [n] X** - delete or change where X is a navigation command eg d2w. Change enters insert mode.   * **d c [n] X** - delete or change where X is a navigation command eg d2w. Change enters insert mode.
   * **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   * **x s** - delete character, delete character and start inserting
 +  * **S** - delete line and start inserting
 +  * **r** - replace single character
 +  * **J** - join line with next one
  
 ===== Copying & Pasting ===== ===== Copying & Pasting =====
Line 35: Line 49:
   * **dd yy** - delete or yank line into buffer   * **dd yy** - delete or yank line into buffer
   * **p P** - paste after or before   * **p P** - paste after or before
 +  * **ctrl-R** - paste while in edit mode
   * **"[a-z]** - used before delete/yank/paste to specify a register   * **"[a-z]** - used before delete/yank/paste to specify a register
   * **"[A-Z]** - used before delete/yank to append to previous contents of register   * **"[A-Z]** - used before delete/yank to append to previous contents of register
Line 55: Line 70:
   * **@[a-z]** - play macro   * **@[a-z]** - play macro
   * **@@** - play last played macro   * **@@** - play last played macro
 +
 +  * **> <[]nX** - indent / unindent 
 +  * **i a** - after d/c/y/</> inner block or inner block including delimiters. e.g. di( deletes current bracketed block
 +  
 +
 +  * **u / U** - undo , undo change to entire line
 +  * **ctrl-r** - redo
 +  * **ZZ** - save and quit
 +  * **ZQ** - quit without saving
notes/vim_cheat_sheet.1784585635.txt.gz · Last modified: 2026/07/20 15:13 by 47.79.206.70