<leader>
is\
(backslash)<leader>qq
to close current pane<leader>qa
to quit vim<leader>m
to toggle mouse support (useful to allow select + copy)
<leader> 1 through 9
to switch to buffer 1 through 9<leader>]
to switch to next buffer<leader>[
to switch to previous buffer<leader>s
to save current buffer<leader>w
to close the current buffer by trying not to mess up the layout<leader>wo
to close all buffers except the current one<leader>wa
to close all buffers
<leader>l]
to switch to next tab<leader>l[
to switch to previous tab<leader>lw
or<leader>lq
to close current tab<leader>ln
to open a new tab<leader>l1 through 5
to switch to tab 1 through 5
<ctrl>p
or<leader>ff
fuzzy finding file names<ctrl-l>
or<leader>fs
fuzzy find in current file<ctrl-g>
or<leader>fS
fuzzy find in workspace (ripgrep)<ctrl-b>
or<leader>fb
fuzzy find through buffers<ctrl-\>
fuzzy find through neovim commands<leader>fk
fuzzy find through keymaps- When open,
<ctrl>q
, sends matches to the quickfix list - See plugin.fzf.vim for more
<leader>y
to yank to clipboard using bin/pbcopy util<leader>p
to paste from clipboard using bin/pbpaste util<ctrl>o
go back to previous cursor<ctrl>i
go forward to next cursor<leader>cc
comment<leader>cu
uncomment
gD
go to declarationgd
go to definitiongi
find all implementationsgo
go to type definitonK
Displays hover information about a symbol<space>rn
rename symbol<space>ca
code action on code or block (ex: extract function)gr
list all references of a symbol (to quickfix)<space>f
format code
<leader>gs
show status pane<leader>gu
undo hunk<leader>gs
stage hunk<leader>gdo
diff view open<leader>gdb
diff view open, diffing against main branch<leader>gdq
diff view close
<leader>ds
or<leader>df
Open diagnostic float<leader>dn
or]d
Go to next diagnostic<leader>dp
or[d
Go to previous diagnostic<leader>do
Open diagnostic panel (Trouble)<leader>dq
Close diagnostic panel (Trouble)
<ctrl>e
to toggle filetree- In tree
g?
to show help<ctrl>]
to CD into directory-
go up one directory<ctrl>v
Open in vertical split<ctrl>x
Open in horizontal splitI
Toggle hidden filesr
Rename filed
Delete filea
Add file or directory if it ends with/
c
,x
,v
to copy, cut, paste filesf
to find file,F
to clearq
to close treeE
to expand all,W
to collapse
:Git
or:G
or<leader>fgs
git status<leader>fgb
git branches:Gdiff
to see diff:Gwrite
stages current file:Gcommit
to commit:Glog
to show log:Gblame
to show blame
<leader>xo
to open quickfix<leader>xq
to close quickfix<leader>xn
or]x
to go to next quickfix<leader>xp
or[x
to go to prev quickfix<leader>xf
to find in quickfix
<leader>tc
to run nearest / under cursor<leader>tdc
to debug nearest<leader>tf
to run file<leader>tdf
to debug file<leader>tl
to run last<leader>tdl
to debug last<leader>ts
to stop test<leader>to
to open output panel<leader>tk
to clear output panel<leader>tq
to close output panel
<leader>r
to execute current buffer in a shell (normal mode)<leader>r
to execute current visual selection in a shell (visual mode)
Rename <file name>
to rename current fileNew <file name>
to create a file in current buffer dirDelete
to delete current file