docs: update cheat sheet
This commit is contained in:
parent
daa73e5bf3
commit
a5a6626d12
2 changed files with 15 additions and 19 deletions
|
|
@ -3,14 +3,14 @@
|
||||||
## BASICS
|
## BASICS
|
||||||
|
|
||||||
- `;` leader key
|
- `;` leader key
|
||||||
- `:checkhealth [<pluginname>]` check base or <pluginname> status
|
- `:checkhealth [<pluginname>]` check base or plugin status
|
||||||
- `:verbose set expandtab?` check where `expandtab` has been set last
|
- `:verbose set expandtab?` check where `expandtab` has been set last
|
||||||
- `:Lazy` show package manager UI
|
- `:Lazy` show package manager UI
|
||||||
- `:Lazy restore` revert plugins to the state reflected in `lazy-lock.json`
|
- `:Lazy restore` revert plugins to the state reflected in `lazy-lock.json`
|
||||||
- `:Mason` show Mason UI
|
- `:Mason` show Mason UI
|
||||||
- `:TSUpdate` update all treesitter parsers
|
- `:TSUpdate` update all Tree-sitter parsers
|
||||||
- `:TSModuleInfo` show installed treesitter parsers
|
- `:TSModuleInfo` show Tree-sitter parsers
|
||||||
- `:LspInfo` show currently attached LSP client details
|
- `:LspInfo` show attached LSP client details
|
||||||
- `:ConformInfo` useful to debug why a formatter times out
|
- `:ConformInfo` useful to debug why a formatter times out
|
||||||
|
|
||||||
## NAVIGATING
|
## NAVIGATING
|
||||||
|
|
@ -24,28 +24,25 @@
|
||||||
- `Ctrl`+`wq` close window
|
- `Ctrl`+`wq` close window
|
||||||
- `Ctrl`+`ws` split window **horizontally**
|
- `Ctrl`+`ws` split window **horizontally**
|
||||||
- `Ctrl`+`wv` split window **vertically**
|
- `Ctrl`+`wv` split window **vertically**
|
||||||
- `Ctrl`+`<h/j/k/l>` move between split windows
|
- `Ctrl`+`h/j/k/l` move between split windows
|
||||||
- `Ctrl`+`w=` equalize split window width and height
|
- `Ctrl`+`w=` equalize split window width and height
|
||||||
- `Ctrl`+`wr` swap position of two windows
|
- `Ctrl`+`wr` swap position of two windows
|
||||||
- `Ctrl`+`wT` move active split window to new tab
|
- `Ctrl`+`wT` move active split window to new tab
|
||||||
|
|
||||||
## Buffers
|
## Buffers
|
||||||
|
|
||||||
- `leader`+`leader` shows buffers via [snipe.nvim](https://github.com/leath-dub/snipe.nvim)
|
- `leader`+`leader` lists open buffers in `snipe.nvim`
|
||||||
- In snipe.nvim popup: Hit `d` to close the selected buffer
|
- In snipe.nvim popup: Hit `d` to close the selected buffer
|
||||||
- `:bd` close current buffer
|
- `:bd` close current buffer
|
||||||
- `:bn` go to next buffer
|
- `:bn/p` go to next/previous buffer
|
||||||
- `:bp` go to previous buffer
|
|
||||||
|
|
||||||
## Text
|
## Text
|
||||||
|
|
||||||
- `w` move to **start of next word** (ignores punctuation due to remap)
|
- `w/e` move to **start/end of next word** (ignores punctuation due to remap)
|
||||||
- `e` move to **end of next word** (ignores punctuation due to remap)
|
|
||||||
- `b` move to **start of previous word** (ignores punctuation due to remap)
|
- `b` move to **start of previous word** (ignores punctuation due to remap)
|
||||||
- `Ctrl`+`0` start of line
|
- `Ctrl`+`0` start of line
|
||||||
- `Ctrl`+`$` end of line
|
- `Ctrl`+`$` end of line
|
||||||
- `Ctrl`+`d` scroll down 1/2 page while keeping the cursor centered
|
- `Ctrl`+`d/u` scroll down/up 1/2 page while keeping the cursor centered
|
||||||
- `Ctrl`+`u` scroll up 1/2 page while keeping the cursor centered
|
|
||||||
- `Ctrl`+`o` jump to location you were before (e.g. after using `gg`)
|
- `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`)
|
- `Ctrl`+`i` jump back to location you were before (after using `Ctrl`+`o`)
|
||||||
- `f<char>` jump forward to `<char>`
|
- `f<char>` jump forward to `<char>`
|
||||||
|
|
@ -73,13 +70,10 @@
|
||||||
- `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
|
||||||
- `Ctrl`+`q` send all items to quickfix list
|
|
||||||
- `Alt`+`q` send selected items to quickfix list
|
|
||||||
|
|
||||||
## Oil
|
## Oil
|
||||||
|
|
||||||
- `Ctrl`+`d` bottom of file list
|
- `Ctrl`+`d/u` bottom/top of file list
|
||||||
- `Ctrl`+`u` top of file list
|
|
||||||
- `Ctrl`+`p` preview file
|
- `Ctrl`+`p` preview file
|
||||||
- `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
|
||||||
|
|
@ -106,6 +100,8 @@
|
||||||
- `yaW` copy word w/ dashes/underscores
|
- `yaW` copy word w/ dashes/underscores
|
||||||
- `p` paste yanked line below
|
- `p` paste yanked line below
|
||||||
- `P` paste yanked line above
|
- `P` paste yanked line above
|
||||||
|
- `:windo diffthis` open `vimdiff` for open splits
|
||||||
|
- `:windo diffoff` to close diff view
|
||||||
|
|
||||||
## SELECTING
|
## SELECTING
|
||||||
|
|
||||||
|
|
@ -119,15 +115,15 @@
|
||||||
|
|
||||||
### Code selection
|
### Code selection
|
||||||
|
|
||||||
- `Ctrl`+`Space` context-sensitive text selection w/ `treesitter`
|
- `Ctrl`+`leader` context-sensitive text selection w/ Tree-sitter
|
||||||
- `Backspace` reduce context-sensitive selection
|
- `Backspace` reduce context-sensitive selection
|
||||||
|
|
||||||
## SEARCH/OPEN
|
## SEARCH/OPEN
|
||||||
|
|
||||||
- `leader`+`fg` search text in files (also searches for text under cursor)
|
- `leader`+`fg` search text in files (also searches for text under cursor)
|
||||||
- `leader`+`ff` search files (respects `.gitignore`)
|
- `leader`+`ff` search files (respects `.gitignore`)
|
||||||
- `leader`+`e` toggles Oil file explorer
|
- `leader`+`e` toggle Oil file explorer
|
||||||
- `leader`+`fo` recently opened files
|
- `leader`+`fo` recently opened files
|
||||||
- `gf` open file under cursor in a new buffer
|
- `gf` open file under cursor in a new buffer
|
||||||
- `gx` open link under cursor in default browser
|
- `gx` open link under cursor in default browser
|
||||||
- `*` search marked word
|
- `*` search word under cursor
|
||||||
|
|
|
||||||
BIN
CHEATSHEET.pdf
BIN
CHEATSHEET.pdf
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue