docs: update cheat sheet
This commit is contained in:
parent
f6a7cc0e5c
commit
dd6b31644c
2 changed files with 6 additions and 9 deletions
|
|
@ -7,8 +7,8 @@ Heavily customized. Related blog post: https://lugh.ch/neovim-lessons-learned.ht
|
||||||
- `:che [<pluginname>]` check base or plugin status
|
- `:che [<pluginname>]` check base or plugin status
|
||||||
- `:che lsp` show LSP details
|
- `:che lsp` show LSP details
|
||||||
- `:verbose set expandtab?` check where `expandtab` was set last
|
- `:verbose set expandtab?` check where `expandtab` was set last
|
||||||
- `:Lazy` show package manager
|
- `:Lazy` package manager
|
||||||
- `:Mason` show LSP management
|
- `:Mason` LSP management
|
||||||
- `:TSUpdate` update Tree-sitter parsers
|
- `:TSUpdate` update Tree-sitter parsers
|
||||||
- `:ConformInfo` Formatter timeout debug
|
- `:ConformInfo` Formatter timeout debug
|
||||||
|
|
||||||
|
|
@ -28,7 +28,6 @@ Heavily customized. Related blog post: https://lugh.ch/neovim-lessons-learned.ht
|
||||||
### Buffers
|
### Buffers
|
||||||
|
|
||||||
- `leader`+`leader` lists open buffers [`snipe.nvim`]
|
- `leader`+`leader` lists open buffers [`snipe.nvim`]
|
||||||
- In snipe.nvim popup: Hit `D` to close the selected buffer
|
|
||||||
- `:bd` close current buffer
|
- `:bd` close current buffer
|
||||||
|
|
||||||
### Text
|
### Text
|
||||||
|
|
@ -37,7 +36,7 @@ Heavily customized. Related blog post: https://lugh.ch/neovim-lessons-learned.ht
|
||||||
- `b` move to _start_ of _previous_ word
|
- `b` move to _start_ of _previous_ word
|
||||||
- `Ctrl`+`0` _start_ of line
|
- `Ctrl`+`0` _start_ of line
|
||||||
- `Ctrl`+`$` _end_ 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`+`o` jump to previous location (e.g. after using `gg`)
|
||||||
- `Ctrl`+`i` jump forward (after using `Ctrl`+`o`)
|
- `Ctrl`+`i` jump forward (after using `Ctrl`+`o`)
|
||||||
- `s<chars>` highlight jump targets [`flash.nvim`]
|
- `s<chars>` highlight jump targets [`flash.nvim`]
|
||||||
|
|
@ -57,10 +56,8 @@ Heavily customized. Related blog post: https://lugh.ch/neovim-lessons-learned.ht
|
||||||
|
|
||||||
### Telescope
|
### Telescope
|
||||||
|
|
||||||
- `Esc`+`j` scroll down
|
- `Esc`+`j/k` scroll down/up
|
||||||
- `Esc`+`k` scroll up
|
|
||||||
- `Ctrl`+`d/u` scroll down/up in preview pane
|
- `Ctrl`+`d/u` scroll down/up in preview pane
|
||||||
- `Ctrl`+`/` help
|
|
||||||
- `Ctrl`+`v` open file in _vertical_ split
|
- `Ctrl`+`v` open file in _vertical_ split
|
||||||
- `Ctrl`+`x` open file in _horizontal_ split
|
- `Ctrl`+`x` open file in _horizontal_ split
|
||||||
- `Ctrl`+`t` open file in new tab
|
- `Ctrl`+`t` open file in new tab
|
||||||
|
|
@ -86,8 +83,8 @@ change.
|
||||||
- `i/I` insert mode at _cursor position_/_beginning of the line_
|
- `i/I` insert mode at _cursor position_/_beginning of the line_
|
||||||
- `a/A` insert mode _after the current char_/_at end of line_
|
- `a/A` insert mode _after the current char_/_at end of line_
|
||||||
- `o/O` insert mode a line _below_/_above_ the cursor
|
- `o/O` insert mode a line _below_/_above_ the cursor
|
||||||
- `cc` replace _whole_ line
|
- `cc/S` replace _whole_ line
|
||||||
- `C` _replace_ to the _end_ of the line
|
- `C` _replace_ to the _end_ of the line _from current position_
|
||||||
- `D` _delete_ to the end of the line
|
- `D` _delete_ to the end of the line
|
||||||
- `p/P` paste yanked line below/above
|
- `p/P` paste yanked line below/above
|
||||||
- `yygccp` comment and copy the current line
|
- `yygccp` comment and copy the current line
|
||||||
|
|
|
||||||
BIN
CHEATSHEET.pdf
BIN
CHEATSHEET.pdf
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue