diff --git a/CHEATSHEET.md b/CHEATSHEET.md index bb11a69..2a9f763 100644 --- a/CHEATSHEET.md +++ b/CHEATSHEET.md @@ -7,8 +7,8 @@ Heavily customized. Related blog post: https://lugh.ch/neovim-lessons-learned.ht - `:che []` check base or plugin status - `:che lsp` show LSP details - `:verbose set expandtab?` check where `expandtab` was set last -- `:Lazy` show package manager -- `:Mason` show LSP management +- `:Lazy` package manager +- `:Mason` LSP management - `:TSUpdate` update Tree-sitter parsers - `:ConformInfo` Formatter timeout debug @@ -28,7 +28,6 @@ Heavily customized. Related blog post: https://lugh.ch/neovim-lessons-learned.ht ### Buffers - `leader`+`leader` lists open buffers [`snipe.nvim`] -- In snipe.nvim popup: Hit `D` to close the selected buffer - `:bd` close current buffer ### Text @@ -37,7 +36,7 @@ Heavily customized. Related blog post: https://lugh.ch/neovim-lessons-learned.ht - `b` move to _start_ of _previous_ word - `Ctrl`+`0` _start_ of line - `Ctrl`+`$` _end_ of line -- `Ctrl`+`d/u` scroll _down_/_up_ 1/2 page while keeping the cursor centered +- `Ctrl`+`d/u` scroll _down_/_up_ 1/2 page keeping the cursor centered - `Ctrl`+`o` jump to previous location (e.g. after using `gg`) - `Ctrl`+`i` jump forward (after using `Ctrl`+`o`) - `s` highlight jump targets [`flash.nvim`] @@ -57,10 +56,8 @@ Heavily customized. Related blog post: https://lugh.ch/neovim-lessons-learned.ht ### Telescope -- `Esc`+`j` scroll down -- `Esc`+`k` scroll up +- `Esc`+`j/k` scroll down/up - `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 - `Ctrl`+`t` open file in new tab @@ -86,8 +83,8 @@ change. - `i/I` insert mode at _cursor position_/_beginning of the line_ - `a/A` insert mode _after the current char_/_at end of line_ - `o/O` insert mode a line _below_/_above_ the cursor -- `cc` replace _whole_ line -- `C` _replace_ to the _end_ of the line +- `cc/S` replace _whole_ line +- `C` _replace_ to the _end_ of the line _from current position_ - `D` _delete_ to the end of the line - `p/P` paste yanked line below/above - `yygccp` comment and copy the current line diff --git a/CHEATSHEET.pdf b/CHEATSHEET.pdf index 7c259b1..c409d35 100644 Binary files a/CHEATSHEET.pdf and b/CHEATSHEET.pdf differ