Neovim
While not an exhaustive list, here are the most essential keybindings for my daily Neovim use.
Neovim
Section titled “Neovim”| Key | Mode | Description |
|---|---|---|
<Leader>cr | Normal | Reload Neovim configuration |
Session Manager
Section titled “Session Manager”| Key | Mode | Description |
|---|---|---|
<Leader>oc | Normal | Create a new session |
<Leader>od | Normal | Delete a session |
<Leader>ol | Normal | Load a session |
File Manager
Section titled “File Manager”| Key | Mode | Description |
|---|---|---|
<Leader>t | Normal | Toggle File Manager |
Treesitter
Section titled “Treesitter”Select
Section titled “Select”| Key | Mode | Description |
|---|---|---|
of | Visual, Operator | Select outer function |
if | Visual, Operator | Select inner function |
oc | Visual, Operator | Select outer class |
ic | Visual, Operator | Select inner class |
op | Visual, Operator | Select outer parameter |
ip | Visual, Operator | Select inner parameter |
ov | Visual, Operator | Select outer assignment |
iv | Visual, Operator | Select inner assignment |
S | Normal | Interactive select |
| Key | Mode | Description |
|---|---|---|
<Leader>a | Normal | Swap with next parameter |
<Leader>A | Normal | Swap with previous parameter |
| Key | Mode | Description |
|---|---|---|
np | Normal, Visual, Operator | Next parameter start |
nP | Normal, Visual, Operator | Next parameter end |
pp | Normal, Visual, Operator | Previous parameter start |
pP | Normal, Visual, Operator | Previous parameter end |
nf | Normal, Visual, Operator | Next function start |
nF | Normal, Visual, Operator | Next function end |
pf | Normal, Visual, Operator | Previous function start |
pF | Normal, Visual, Operator | Previous function end |
nc | Normal, Visual, Operator | Next class start |
nC | Normal, Visual, Operator | Next class end |
pc | Normal, Visual, Operator | Previous class start |
pC | Normal, Visual, Operator | Previous class end |
s | Normal, Visual | Interactive move |
<Leader>c | Normal | Jump upwards to context |
Edition
Section titled “Edition”Format
Section titled “Format”| Key | Mode | Description |
|---|---|---|
ff | Normal | Format code |
FF | Normal | Format and save |
Comment
Section titled “Comment”| Key | Mode | Description |
|---|---|---|
<Leader>doc | Normal, Visual | Create doc signature annotation |
<Leader>cc | Normal, Visual | Toggle inline comment |
<Leader>cb | Normal, Visual | Toggle block comment |
Mutations
Section titled “Mutations”| Key | Mode | Description |
|---|---|---|
<Ctrl-w>,<Del> | Normal, Insert | Delete previous word |
<Leader>qq | Normal | Surround word with double quotes |
<Leader>q | Normal | Toggle between single and double quotes |
<Leader>h | Normal | Toggle cloak on .env and .yaml files |
Folding
Section titled “Folding”| Key | Mode | Description |
|---|---|---|
¨ | Normal, Insert, Operator, Visual | Create or toggle fold |
| Key | Mode | Description |
|---|---|---|
<Tab> | Normal, Visual | Indent |
<S-Tab> | Normal, Visual | Unindent |
<A-k> | Normal, Visual | Move line/s up |
<A-j> | Normal, Visual | Move line/s down |
Navigation
Section titled “Navigation”| Key | Mode | Description |
|---|---|---|
<Leader>sm | Normal | Search marks |
m} | Normal | Next mark |
m{ | Normal | Previous mark |
Management
Section titled “Management”| Key | Mode | Description |
|---|---|---|
m, | Normal | Set alpha mark |
m; | Normal | Toggle alpha mark |
m[0-9] | Normal | Set bookmark group [0-9] |
dm[0-9] | Normal | Delete bookmark group [0-9] |
dm= | Normal | Delete current line mark |
Buffer
Section titled “Buffer”Navigation
Section titled “Navigation”| Key | Mode | Description |
|---|---|---|
<Ctrl-Down> | Normal | Previous buffer |
<Ctrl-Up> | Normal | Next buffer |
{n}k | Normal | Move up n lines |
{n}j | Normal | Move down n lines |
<Shift-Up> | Normal, Visual, X | Scroll up |
<Shift-Down> | Normal, Visual, X | Scroll down |
s | Normal, Visual, X | Flash Search |
S | Normal, Visual, X | Flash Treesitter |
r | X, O | Flash Treesitter Search |
Management
Section titled “Management”| Key | Mode | Description |
|---|---|---|
<Ctrl-x> | Normal | Close buffer |
Window
Section titled “Window”Navigation
Section titled “Navigation”| Key | Mode | Description |
|---|---|---|
<Ctrl-w><Left> | Normal | Focus window left |
<Ctrl-w><Right> | Normal | Focus window right |
<Ctrl-w><Up> | Normal | Focus window above |
<Ctrl-w><Down> | Normal | Focus window below |
<Leader>wm | Normal | Window interactive move |
<Leader>win | Normal | Window picker |
Management
Section titled “Management”| Key | Mode | Description |
|---|---|---|
<Ctrl-w>x | Normal | Close window |
<Leader>w- | Normal | Horizontal split |
<Leader>w| | Normal | Vertical split |
w<Left> | Normal | Resize window left |
w<Right> | Normal | Resize window right |
w<Up> | Normal | Resize window up |
w<Down> | Normal | Resize window down |
<Leader>fs | Normal | Maximize window |
<Ctrl-w> = | Normal | Equalize windows dimensions |
Movement
Section titled “Movement”| Key | Mode | Description |
|---|---|---|
<Leader>w<Left> | Normal | Move window left |
<Leader>w<Right> | Normal | Move window right |
<Leader>w<Up> | Normal | Move window up |
<Leader>w<Down> | Normal | Move window down |
Navigation
Section titled “Navigation”| Key | Mode | Description |
|---|---|---|
<Tab><Right> | Normal | Next tab |
<Tab><Left> | Normal | Previous tab |
Management
Section titled “Management”| Key | Mode | Description |
|---|---|---|
<Tab>n | Normal | New tab |
<Tab>x | Normal | Close tab |
<Tab>r | Normal | Rename current tab |
<Tab>w | Normal | Save * |
Navigation
Section titled “Navigation”| Key | Mode | Description |
|---|---|---|
<Leader>sa | Normal | Code actions |
<Leader>sra | Normal | Search * |
<Leader>sde | Normal | Definitions |
<Leader>sr | Normal | References |
<Leader>sff | Normal | Symbols |
<Leader>sic | Normal | Incoming calls |
<Leader>soc | Normal | Outgoing calls |
<Leader>si | Normal | Implementations |
<Ctrl-Shift-Left> | Normal | Go to definition |
<Ctrl-Shift-Right> | Normal | Go to declaration |
<Ctrl-k> | Insert | Signature definition |
K | Normal | Signature docs |
Diagnostics
Section titled “Diagnostics”| Key | Mode | Description |
|---|---|---|
<Leader>sd | Normal | Show Buffer diagnostics |
<Ctrl-e> | Normal | Next diagnostic |
<Ctrl-p> | Normal | Previous diagnostic |
Refactor
Section titled “Refactor”Rename
Section titled “Rename”| Key | Mode | Description |
|---|---|---|
<Leader>rn | Insert, Normal, Visual | Rename symbol |
Interface
Section titled “Interface”| Key | Mode | Description |
|---|---|---|
<Leader>dB | Normal | Set breakpoint with condition |
<Leader>dn | Normal | Start new session |
<Leader>dc | Normal | Continue or start session |
<Leader>db | Normal | Toggle breakpoint |
<Leader>dso | Normal | Step over |
<Leader>dsi | Normal | Step into |
<Leader>do | Normal | Step out |
<Leader>dp | Normal | Pause execution |
<Leader>ds | Normal | Stop session |
<Leader>dex | Normal | Toggle REPL |
nb | Normal | Next breakpoint |
pb | Normal | Previous breakpoint |
sb | Normal | Current stopped breakpoint |
Integrations
Section titled “Integrations”| Key | Mode | Description |
|---|---|---|
<Leader>tnd | Normal | Run nearest test with DAP integration |
<Leader>tfd | Normal | Run * file tests with DAP integration |
<Leader>tn | Normal | Run nearest test |
<Leader>tf | Normal | Run * file tests |
<Leader>tf | Normal | Run * directory tests |
<Leader>ts | Normal | Show summary |
<Leader>to | Normal | Show output |
<Leader>top | Normal | Show output panel |
<Leader>tw | Normal | Rerun test on file changes |
Markdown
Section titled “Markdown”| Key | Mode | Description |
|---|---|---|
<Leader>mk | Normal | Markdown inline render |
<Leader>mp | Normal | Markdown preview |
<Leader>tocu | Normal | Markdown ToC unordered list |
<Leader>toco | Normal | Markdown ToC ordered list |
<bs> | Normal | Previous markdown file |
| Key | Mode | Description |
|---|---|---|
<Leader>g | Normal | Open Neogit |
<Leader>gb | Normal | Git blame |
<Leader>gbi | Normal | Git inline blame |
<Leader>gl | Normal | Git log |
<Leader>gs | Normal | Git status |
<Leader>gc | Normal | Git commits |
Telescope
Section titled “Telescope”| Key | Mode | Description |
|---|---|---|
<Leader>sh | Normal | Search help tags |
<Leader>sk | Normal | Search keymaps |
<Leader>sf | Normal | Find files |
<Leader>sw | Normal | Grep string |
<Leader>sg | Normal | Live grep |
<Leader>so | Normal | Recent files |
<Leader>sb | Normal | Search buffers |
| Key | Mode | Description |
|---|---|---|
<Leader>syc | Normal | Schema picker |
<Leader>sy | Normal | Select from matching schemas |
<Leader>kv | Normal | Change Kubernetes API schema |
Terminal
Section titled “Terminal”| Key | Mode | Description |
|---|---|---|
<Leader>; | Normal | Toggle terminal |
<Esc> | Terminal | Exit terminal mode |
Database
Section titled “Database”| Key | Mode | Description |
|---|---|---|
<Leader>ddb | Normal | Opens DB interface in a new tab |
Snippets
Section titled “Snippets”| Key | Mode | Description |
|---|---|---|
<Ctrl-j> | Insert, Select | Expand snippet |
<Ctrl-l> | Insert, Select | Expand or jump |
<Tab> | Insert, Select | Jump to next placeholder |
<Shift-Tab> | Insert, Select | Jump to previous placeholder |
Miscellaneous
Section titled “Miscellaneous”| Key | Mode | Description |
|---|---|---|
<Leader>z | Normal | Toggle focus mode |
<Ctrl-a> | Normal | Increment version |
<Ctrl-x> | Normal | Decrement version |
jq | Normal | Jq/Yq quickfix |
jqq | Normal | Jq/Yq query |