Zum Hauptinhalt springen
Version: 1.2

Keybind overview

Here's an overview of the most commonly used mappings. It is not a complete list, you can find more by pressing <leader>sk to search through them, or <leader> to show whichkey (keybinds popup)

Also see: vim mappings

TIP: <leader> is space by default, read :help keycodes for more key names

TIP: <M> is alt on Windows/Linux and option on MacOS

TIP: Non-leader keybindings (for e.g. <C-\>, mentioned below and others) can be viewed by pressing <backspace> in the which-key main menu (first popup after pressing <leader>)

Plugins

keydescriptionmode
<leader>whichkey (keybinds popup (shows up after 1s))normal
<leader>envimtree (side file explorer)normal
<leader>ftelescope (find files)normal
<leader>;alpha (dashboard)normal
<C-\> <M-1/2/3>toggleterm (terminal)normal

LSP

keydescriptionmode
Khover informationnormal
gdgo to definitionnormal
gDgo to declarationnormal
grgo to referencesnormal
gIgo to implementationnormal
gsshow signature helpnormal
glshow line diagnosticsnormal

Editing

keydescriptionmode
<leader>/commentnormal, visual
gbblock commentvisual
<M-k>move line(s) upnormal, visual
<M-j>move line(s) downnormal, visual

Completion

keydescriptionmode
<C-space>show completion menuinsert
<CR> <C-y>confirminsert
<C-e>abortinsert
<C-k> <Up> <Tab>select previous iteminsert
<C-j> <Down> <S-Tab>select next iteminsert
<C-d>scroll docs upinsert
<C-f>scroll docs downinsert
<CR> <Tab>jump to next jumpable in a snippetinsert
<S-Tab>jump to previous jumpable in a snippetinsert

Windows

keydescriptionmode
<C-h>go to left windownormal
<C-j>go to lower windownormal
<C-k>go to upper windownormal
<C-l>go to right windownormal
<C-Up>decrease window heightnormal
<C-Down>increase window heightnormal
<C-Left>decrease window widthnormal
<C-Right>increase window widthnormal

Miscellaneous

keydescriptionmode
<leader>Lcedit config.luanormal
<leader>hclear search highlightingnormal
<leader>shsearch through :helpnormal
<leader>sropen recent filesnormal
<leader>pSlist of installed pluginsnormal

nvimtree (side file explorer)

g? show keybindings