Cheatography
https://cheatography.com
asdfasdfasdfasfasddfasdfasfd
This is a draft cheat sheet. It is a work in progress and is not finished yet.
NVIM keymaps
clear search highlights |
leader-nh |
increment number |
leader-+ |
decrement number |
leader-- |
split vertically |
leader-sv |
split horizontally |
leader-sh |
close split |
leader-sx |
make splits equal sizse |
leader-se |
open tab |
leader-to |
close tab |
leader-tx |
previous tab |
leader-tp |
next tab |
leader-tn |
open current buffer in new tab |
leader-tf |
NVIM substitue
s |
subsitute with motion |
ss |
substitute line |
S |
substitute to end of line |
s |
substitute in visual mode |
TMUX sessions
create sesstion |
tmux new -s [name] |
Attach to session |
tmux attach -t [name] |
List Sessions |
tmux ls |
Kill session |
tmux kill-session -t [name] |
Windows (Tabs)
create window |
c |
list windows |
w |
next window |
n |
prev window |
p |
find window |
f |
rename window |
, |
kill window |
& |
|
|
NVIM tree
Toggle file explorer |
leader-ee |
Toggle file explorer on current file |
leader-ef |
Collapse file explorer |
leader-ec |
Refresh file explorer |
leader-er |
NVIM Telescope
Find files in cwd |
leader-ff |
Find recent files |
leader-fr |
Find string in cwd |
leader-fs |
Find string under cursor in cwd |
leader-fc |
Find todo |
leader-ft |
NVIM Surround
surround text |
ys+motion |
delete surrounding |
ds |
change surrounding |
cs |
NVIM Trouble
leader-xx |
Toggle Trouble |
leader-xw |
Open workspace diagnostics |
leader-xd |
Open document diagnostics |
leader-xq |
Open Quickfix list |
leader-xl |
open Location list |
leader-xt |
Open todos in trouble |
gitsigns
leader-hb |
toggile line blames |
Panes (Splits)
Split vertically |
- |
split horizontally |
| |
swap panes |
o |
show pane numbers |
q |
kill pane |
x |
resize panes |
hjkl |
maximize pane |
m |
|
|
NVIM auto-session
Restore session |
leader-wr |
Save session |
leader-ws |
NVIM Maximizer
leader-sm |
Maximize/minimize a split |
LSP
gR |
telescope references |
gD |
Go to declaration |
gd |
Show definitons |
gi |
show implementations |
gt |
show type definitions |
leader-ca |
show code actions |
leader-rn |
smart rename |
leader-D |
show bugger diagnostics |
[d |
go to prev diagnostic |
]d |
go to next diagnostic |
show doc for what is under cursor |
K |
restart lsp |
leader-rs |
NVIM todo
next todo |
]t |
prev todo |
[t |
Comment
comment code |
gc+motion |
comment line |
gcc |
|