Cheatography
https://cheatography.com
These are my NVIM and TMUX Commands
This is a draft cheat sheet. It is a work in progress and is not finished yet.
TMUX Sessions
Create Session |
tmux new -s [name] |
Attach to a 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 |
Previous Window |
p |
Find Window |
f |
Rename Window |
, |
Kill Window |
& |
Panes (splits)
Split Vertically |
- |
Split Horizontally |
| |
Swap Panes |
o |
Show Pane Numbers |
q |
Kill Pane |
x |
Resize Panes |
h j k l |
Maximize Pane |
m |
LSP
Show Definition/References |
gf |
Go to Declaration |
gD |
See Definition |
gd |
Go to Implementation |
gi |
See available Code Actions |
leader ca |
Smart Rename |
leader rn |
Show Diagnostics for Line |
leader D |
Show Diagnostics for Cursos |
leader d |
Jump to prev diagnostic in buffer |
[d |
Jump to next diagnostic in buffer |
]d |
Show documentation for under cursor |
K |
see outline on right hand side |
leader o |
Typescript rename file and update imports |
leader rf |
|
|
NVIM Keymaps
Leader Key |
Space |
Clear Search Highlights |
nh |
Increment/Decrement Numbers |
+/- |
Split Window Vertically |
sv |
Split Window Horizontally |
sh |
Make Split Window Equal Width and Height |
se |
Close Split Window |
sx |
Open New Tab |
to |
Close Current Tab |
tx |
Go To Next Tab |
tn |
Go To Previous Tab |
tp |
Toggle Split Window Maximization |
sm |
Toggle File Explorer |
e |
NVIM Tree
Create File |
a |
Move File to Trash/Delete Permanently |
D/d |
Rename File |
r |
Cut file |
x |
Copy File |
c |
Paste File |
p |
Copy File Name |
y |
Copy File Path |
Y |
Dir Up |
- |
Bulk Move |
bmv |
Misc
Detach Session |
d |
Big Clock |
t |
List Shortcurs |
? |
TroubleToggle
Toggle Trouble |
leader xx |
ToggleTrouble Workspace |
leader xw |
ToggleTrouble Document |
leader xd |
ToggleTrouble Quickfix |
leader xq |
ToggleTrouble loclist |
leader xl |
ToggleTrouble lsp_refernces |
gR |
|
|
Vim Surround
surround |
ys |
delete surrounding |
ds |
change surrounding |
cs |
pattern |
motion word |
example - surround word with dquotes |
ys w " |
example - change surrounding |
cs " ' |
Replace with Register
Replace with copied text |
gr |
example - replace word with register |
gr w |
Comment
comment line |
gcc |
comment 10 lines down |
gc10j |
pattern |
gc motion |
Telescope
Find Files |
leader ff |
Find String in cwd |
leader fs |
Find String under cursor in cwd |
leader fc |
List open Buffers in current Nvim instance |
leader fb |
List available help tags |
leader fh |
Flutter Helper
Flutter Run |
leader ds |
Flutter Outline Toggle |
leader do |
Flutter Reload |
leader dr |
Flutter Quit |
leader dt |
Trouble
Close |
q |
cancel |
esc |
refresh |
r |
jump |
ctr tab |
open split |
ctr x |
open vsplit |
ctr v |
open tab |
ctr t |
jump_close |
o |
toggle_mode |
m |
toggle_preview |
P |
hover |
K |
preview |
p |
close folds |
zM zm |
open folds |
zR zr |
toggle fold |
zA za |
|