Site Tools


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/06/04 16:23]
47.82.8.170 old revision restored (2026/05/29 09:06)
notes:vim_cheat_sheet [2026/06/07 17:23] (current)
216.73.217.92 old revision restored (2026/06/05 07:42)
Line 14: Line 14:
 In navigation mode, the following can be used to move around In navigation mode, the following can be used to move around
  
-  *  **← ↓ j k ↑ ** - Move by one letter -  : h-left, l-right, j-down, k-up+  *  **\/ j k >** - Move by one letter -  : h-left, l-right, j-down, k-up
   * **w b e** - Move by words -  w - next word, b - prev word, e - end of word   * **w b e** - Move by words -  w - next word, b - prev word, e - end of word
   * **W B E** Move by sequences of non-blanks (Words) -  W - next Word, B - prev Word, E - end of Word   * **W B E** Move by sequences of non-blanks (Words) -  W - next Word, B - prev Word, E - end of Word
Line 53: Line 53:
   * **"[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
   * **"* "+** - Use system clipboard as register   * **"* "+** - Use system clipboard as register
-  **v V ctrl-V** - enter select mode (character, line or block)+  **v V ctrl-V** - enter select mode (character, line or block)
  
-===== Searching & Bookmarks =====+===== Searching & Bookmarks=====
  
   * **/ ?** - Start incremental search forwards or backwards   * **/ ?** - Start incremental search forwards or backwards
Line 63: Line 63:
   * **`[a-z]** - jump to bookmark   * **`[a-z]** - jump to bookmark
   * **'[a-z]** - jump to first non-blank on bookmarked line   * **'[a-z]** - jump to first non-blank on bookmarked line
-  * **[A-Z]** - global bookmarks (not buffer-specific)+  * **[A-Z]]** - global bookmarks (not buffer-specific)
   * **.** - bookmark of last modification   * **.** - bookmark of last modification
- 
-===== Folding ===== 
- 
-  * folding allows temporarily hiding blocks of text. Folding commands start with z. 
-  * **zR zr** - opens all folds / one level of folds 
-  * **zM zm ** - closes all folds / one level of folds 
-  * **zO zo** - opens all folds at the cursor / one level of folds at the cursor 
-  * **zC zc** - closes all folds at the cursor / one level of folds at the cursor 
-  * **[z ]z** - jump to start/end of fold 
-  * **zj zk** - jump to previous / next fold 
-  * **zE zd** - delete all folds / fold at cursor 
  
 ===== Assorted ===== ===== Assorted =====
Line 83: Line 72:
   * **@@** - play last played macro   * **@@** - play last played macro
  
-  * **> <[n]X** - indent / unindent +  * **> <[]nX** - indent / unindent 
   * **i a** - after d/c/y/</> inner block or inner block including delimiters. e.g. di( deletes current bracketed block   * **i a** - after d/c/y/</> inner block or inner block including delimiters. e.g. di( deletes current bracketed block
      
notes/vim_cheat_sheet.1780615399.txt.gz · Last modified: 2026/06/04 16:23 by 47.82.8.170