diff --git a/CHEATSHEET.md b/CHEATSHEET.md index 91723ff..0b3f8c1 100644 --- a/CHEATSHEET.md +++ b/CHEATSHEET.md @@ -6,20 +6,14 @@ - `:checkhealth []` check base or plugin status - `:verbose set expandtab?` check where `expandtab` has been set last - `:Lazy` show package manager UI -- `:Lazy restore` revert plugins to the state reflected in `lazy-lock.json` - `:Mason` show Mason UI - `:TSUpdate` update all Tree-sitter parsers -- `:TSModuleInfo` show Tree-sitter parsers - `:LspInfo` show attached LSP client details - `:ConformInfo` useful to debug why a formatter times out ## NAVIGATING -## Tabs - -- `gt` or `gT` switch forward/reverse between tabs - -## Windows/splits +## Windows, splits & tabs - `Ctrl`+`wq` close window - `Ctrl`+`ws` split window **horizontally** @@ -28,6 +22,7 @@ - `Ctrl`+`w=` equalize split window width and height - `Ctrl`+`wr` swap position of two windows - `Ctrl`+`wT` move active split window to new tab +- `gt` or `gT` switch forward/reverse between tabs ## Buffers @@ -45,8 +40,7 @@ - `Ctrl`+`d/u` scroll down/up 1/2 page while keeping the cursor centered - `Ctrl`+`o` jump to location you were before (e.g. after using `gg`) - `Ctrl`+`i` jump back to location you were before (after using `Ctrl`+`o`) -- `f` jump forward to `` -- `F` jump backwards to `` +- `s` highlight jump targets via `flash.nvim` ## LSP, Code & Diagnostics @@ -57,15 +51,14 @@ - `gr` show references of function - `leader`+`q` toggle `trouble.nvim` quickfix list - `leader`+`da` go to next diagnostic (any severity) -- `leader`+`dw` go to next diagnostic (warning severity) -- `leader`+`de` go to next diagnostic (error severity) +- `leader`+`dw` go to next diagnostic (_warning_ severity) +- `leader`+`de` go to next diagnostic (_error_ severity) ## Telescope - `↓` or `Ctrl`+`n` scroll down (**n**ext) file list - `↑` or `Ctrl`+`p` scroll up (**p**revious) file list -- `Ctrl`+`d` scroll **d**own in preview pane -- `Ctrl`+`u` scroll **u**p in preview pane +- `Ctrl`+`d/u` scroll down/up in preview pane - `Ctrl`+`/` help - `Ctrl`+`v` open file in **vertical** split - `Ctrl`+`x` open file in **horizontal** split @@ -90,7 +83,6 @@ - `A` insert mode at **end of line** - `o` insert mode a line **below** the cursor - `O` insert mode a line **above** the cursor -- `s` delete character and replace (substitute) it - `cw` replace the current word - `cc` replace whole line - `C` replace to the end of the line @@ -98,9 +90,9 @@ - `yap` "yank-around-paragraph" - `yip` "yank-inside-paragraph" - `yaW` copy word w/ dashes/underscores -- `p` paste yanked line below -- `P` paste yanked line above +- `p/P` paste yanked line below/above - `:windo diffthis` open `vimdiff` for open splits +- `:vert diffsplit ` diff this file and `` - `:windo diffoff` to close diff view ## SELECTING diff --git a/CHEATSHEET.pdf b/CHEATSHEET.pdf index 5b89abf..2f25053 100644 Binary files a/CHEATSHEET.pdf and b/CHEATSHEET.pdf differ