docs: update cheat sheet

This commit is contained in:
Oliver Ladner 2025-12-10 11:53:58 +01:00
commit dd6b31644c
2 changed files with 6 additions and 9 deletions

View file

@ -7,8 +7,8 @@ Heavily customized. Related blog post: https://lugh.ch/neovim-lessons-learned.ht
- `:che [<pluginname>]` 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<chars>` 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

Binary file not shown.