Show Menu
Cheatography

Programming Cheat Sheet (DRAFT) by

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 horizo­ntally
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-s­­ession -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 surrou­nding
ds
change surrou­nding
cs

NVIM Trouble

leader-xx
Toggle Trouble
leader-xw
Open workspace diagno­stics
leader-xd
Open document diagno­stics
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 horizo­ntally
|
swap panes
o
show pane numbers
q
kill pane
x
resize panes
hjkl
maximize pane
m
 

NVIM auto-s­ession

Restore session
leader-wr
Save session
leader-ws

NVIM Maximizer

leader-sm
Maximi­ze/­min­imize a split

LSP

gR
telescope references
gD
Go to declar­ation
gd
Show definitons
gi
show implem­ent­ations
gt
show type defini­tions
leader-ca
show code actions
leader-rn
smart rename
leader-D
show bugger diagno­stics
[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