docs: udpate cheatsheet

This commit is contained in:
Oliver Ladner 2025-01-23 10:38:39 +01:00
commit 24f19f1065
2 changed files with 8 additions and 16 deletions

View file

@ -6,20 +6,14 @@
- `:checkhealth [<pluginname>]` 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<char>` jump forward to `<char>`
- `F<char>` jump backwards to `<char>`
- `s<string>` 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 <other/file>` diff this file and `<other/file>`
- `:windo diffoff` to close diff view
## SELECTING

Binary file not shown.