Skip to content

Latest commit

 

History

History
1430 lines (1408 loc) · 28.3 KB

keybindings.md

File metadata and controls

1430 lines (1408 loc) · 28.3 KB

Default keybindings

Please download this file if you want a keybindings cheatsheet to refer to.

Adjust font size

keys help modes noremap key-attribs events patterns
<C-ScrollWheelUp> Increase font size by 2 n true silent all all
<C-ScrollWheelDown> Decrease font size by 2 n true silent all all

File operations

keys help modes noremap key-attribs events patterns
SPC fs Save curent file n true silent all all
SPC fv Source current file n true silent all all
SPC fp Open doom config dir n true silent all all
SPC fP Open private config dir n true silent all all
SPC fV Source doom's init.lua n true silent all all

Tab operations

keys help modes noremap key-attribs events patterns
SPC tk Close current tab n true silent all all
SPC tn Go to next tab n true silent all all
SPC tp Go to previous tab n true silent all all
SPC tf Find tab n true silent all all
SPC te Open file in a new tab n true silent all all
SPC tt Open a new tab n true silent all all

Buffer operations

keys help modes noremap key-attribs events patterns
SPC qw Save buffers and quit n true silent all all
SPC bp Previous buffer n true silent all all
SPC bR Set file to RO n true silent all all
SPC bn Next buffer n true silent all all
SPC br Revert buffer n true silent all all
SPC bk Hide current buffer n true silent all all
SPC qq Quit unconditionally n true silent all all

Misc operations

keys help modes noremap key-attribs events patterns
<del> No highlight n true silent all all
SPC ; Open command mode n true silent all all
COM & Execute an async sh command and split window n true silent all all

Doom operations

keys help modes noremap key-attribs events patterns
SPC hrf Toggle back and forth between Gohu and BitstreamVeraSans n true silent all all
SPC hrl Toggle light/dark background n true silent all all

Indentation operations

keys help modes noremap key-attribs events patterns
<PageDown> Decrease indent n true silent all all
<PageUp> Increase indent n true silent all all
<S-PageDown> Decrease indent in visual range v true silent all all
<S-PageUp> Increase indent in visual range v true silent all all

REPL operations

keys help modes noremap key-attribs events patterns
COM ,t Open a ft REPL in a new tab n true silent all all
COM ,T Open a new bash REPL in a new tab n true silent all all
COM ,e Send current line to ft REPL n true silent all all
COM ,. Send strings till-point to ft REPL n true silent all all
COM ,b Send buffer to ft REPL n true silent all all
COM ,E Send current line to bash REPL n true silent all all
COM ,> Send strings till-point to bash REPL n true silent all all
COM ,B Send buffer to bash REPL n true silent all all
COM ,E Send visual range to bash REPL v true silent all all
COM ,e Send visual range to ft REPL v true silent all all
COM ts Split buffer and open shell n true silent all all
COM tv Split buffer and open shell n true silent all all
COM ,s Split buffer and open ft REPL n true silent all all
COM ,v Vsplit buffer and open ft REPL n true silent all all
COM ,k Shutdown current ft REPL n true silent all all
COM ,K Shutdown all REPLs n true silent all all
COM tk Shutdown bash shell n true silent all all

Filetype buffer operations

keys help modes noremap key-attribs events patterns
SPC mC Compile <lang> n true silent all all
SPC mB Build <lang> n true silent all all
SPC mT Test <lang> n true silent all all
SPC mc Compile buffer file n true silent all all
SPC mb Build buffer file n true silent all all
SPC mt Compile buffer file n true silent all all

Open nvim-tree

keys help modes noremap key-attribs events patterns
SPC ` Open nvim-tree n true silent all all

Session operations

keys help modes noremap key-attribs events patterns
SPC sl Load current session n true silent all all
SPC ss Save session n true silent all all
SPC sL Load last session n true silent all all

Open trouble window (LSP)

keys help modes noremap key-attribs events patterns
SPC lt Toggle trouble n true silent all all

Distraction-free mode

keys help modes noremap key-attribs events patterns
SPC bz Activate ZenMode n true silent all all

Telescope operations

keys help modes noremap key-attribs events patterns
SPC ff Find file n true silent all all
COM / Live grep in cwd n true silent all all
SPC / Grep string in cwd n true silent all all
SPC fg Show git files n true silent all all
SPC hk Show keymaps n true silent all all
SPC ht Select theme n true silent all all
SPC bb Show buffers n true silent all all
SPC fr Show old files n true silent all all
<A-x> Show commands n true silent all all
SPC hr Show command history n true silent all all
SPC sr Show search history n true silent all all
SPC hm Show man page for a program n true silent all all
SPC hj Show jumplist n true silent all all
SPC h\ Show all registers n true silent all all
<M-y> Show all registers n true silent all all
SPC SPC s Resume telescope n true silent all all
SPC hq Show quickfix list n true silent all all
SPC lhr Show references n true silent all all
SPC lhs Document symbols n true silent all all
SPC lhw Show workspace symbols n true silent all all
SPC lhW Show dynamic ws symbols n true silent all all
SPC lhc Show code actions n true silent all all
SPC lhr Show range code actions n true silent all all
SPC lhd Show diagnostics n true silent all all
SPC lhi Show LSP implementations n true silent all all
SPC lhd Show LSP definitions n true silent all all
SPC lht Show type definitions n true silent all all
SPC mhs Show treesitter symbols n true silent all all
SPC ghc Show commits n true silent all all
SPC ghC Show branch commits n true silent all all
SPC ghb Show branches n true silent all all
SPC ghs Show status n true silent all all
SPC ghS Show stashes n true silent all all
SPC fF Open file browser n true silent all all
SPC pp Open project n true silent all all

Open Tagbar

keys help modes noremap key-attribs events patterns
<C-t> Toggle Tagbar n true silent all all

Git operations

keys help modes noremap key-attribs events patterns
SPC gg Open Fugitive in cwd n true silent all all
SPC gi Initialize git in cwd n true silent all all
SPC ga Track current file n true silent all all
SPC gs Stage current file n true silent all all
SPC gc Commit changes n true silent all all
SPC gp Push commits n true silent all all
SPC gm Merge from remote n true silent all all

Luapad

keys help modes noremap key-attribs events patterns
<F3> Start Luapad n true silent all all

Better buffer deleting

keys help modes noremap key-attribs events patterns
SPC bq Delete current buffer n true silent all all

Snippet operations

keys help modes noremap key-attribs events patterns
<C-j> Expand snippet s false expr all all
<C-j> Expand snippet i false expr all all
<C-l> Expand or jump snippet s false expr all all
<C-l> Expand or jump snippet i false expr all all
<S-Tab> Snippet jump to next field i false expr all all
<S-Tab> Snippet jump to prev field i false expr all all
<Tab> Snippet jump to next field s false expr all all
<Tab> Snippet jump to next field i false expr all all

Neorg operations

keys help modes noremap key-attribs events patterns
<C-f> Go to next heading n true buffer silent BufEnter *norg
<C-b> Go to prev heading n true buffer silent BufEnter *norg
<C-j> Insert heading/bullet n true buffer silent BufEnter *norg
<A-l> Increase bullet/heading level n true buffer silent BufEnter *norg
<A-h> Decrease bullet/heading level n true buffer silent BufEnter *norg

Quickfixlist operations

keys help modes noremap key-attribs events patterns
SPC q/ Run vimgrep on current dir n true silent all all
SPC qf Toggle qflist n false silent all all
COM q/ Run vimgrep on current buffer n true silent all all
COM qr Search requires in buffer n true buffer BufEnter *fnl
COM qf Search defns in buffer n true buffer BufEnter *fnl
COM qL Search locals in buffer n true buffer BufEnter *fnl
COM qm Jump to module n true buffer BufEnter *fnl
COM qR Search requires n true buffer BufEnter *fnl
COM qF Search defns n true buffer BufEnter *fnl
COM qL Search locals n true buffer BufEnter *fnl