Show Menu
Cheatography

My NVIM and TMUX Commands Keyboard Shortcuts (DRAFT) by

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-s­ession -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 Horizo­ntally
|
Swap Panes
o
Show Pane Numbers
q
Kill Pane
x
Resize Panes
h j k l
Maximize Pane
m

LSP

Show Defini­tio­n/R­efe­rences
gf
Go to Declar­ation
gD
See Definition
gd
Go to Implem­ent­ation
gi
See available Code Actions
leader ca
Smart Rename
leader rn
Show Diagno­stics for Line
leader D
Show Diagno­stics for Cursos
leader d
Jump to prev diagnostic in buffer
[d
Jump to next diagnostic in buffer
]d
Show docume­ntation 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
Increm­ent­/De­crement Numbers
+/-
Split Window Vertically
sv
Split Window Horizo­ntally
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 Maximi­zation
sm
Toggle File Explorer
e

NVIM Tree

Create File
a
Move File to Trash/­Delete Perman­ently
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
?

Troubl­eToggle

Toggle Trouble
leader xx
Toggle­Trouble Workspace
leader xw
Toggle­Trouble Document
leader xd
Toggle­Trouble Quickfix
leader xq
Toggle­Trouble loclist
leader xl
Toggle­Trouble lsp_re­fernces
gR
 

Vim Surround

surround
ys
delete surrou­nding
ds
change surrou­nding
cs
pattern
motion word
example - surround word with dquotes
ys w "
example - change surrou­nding
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­_pr­eview
P
hover
K
preview
p
close folds
zM zm
open folds
zR zr
toggle fold
zA za