Skip to content
GitHub

Neovim

While not an exhaustive list, here are the most essential keybindings for my daily Neovim use.

KeyModeDescription
<Leader>crNormalReload Neovim configuration
KeyModeDescription
<Leader>ocNormalCreate a new session
<Leader>odNormalDelete a session
<Leader>olNormalLoad a session
KeyModeDescription
<Leader>tNormalToggle File Manager
KeyModeDescription
ofVisual, OperatorSelect outer function
ifVisual, OperatorSelect inner function
ocVisual, OperatorSelect outer class
icVisual, OperatorSelect inner class
opVisual, OperatorSelect outer parameter
ipVisual, OperatorSelect inner parameter
ovVisual, OperatorSelect outer assignment
ivVisual, OperatorSelect inner assignment
SNormalInteractive select
KeyModeDescription
<Leader>aNormalSwap with next parameter
<Leader>ANormalSwap with previous parameter
KeyModeDescription
npNormal, Visual, OperatorNext parameter start
nPNormal, Visual, OperatorNext parameter end
ppNormal, Visual, OperatorPrevious parameter start
pPNormal, Visual, OperatorPrevious parameter end
nfNormal, Visual, OperatorNext function start
nFNormal, Visual, OperatorNext function end
pfNormal, Visual, OperatorPrevious function start
pFNormal, Visual, OperatorPrevious function end
ncNormal, Visual, OperatorNext class start
nCNormal, Visual, OperatorNext class end
pcNormal, Visual, OperatorPrevious class start
pCNormal, Visual, OperatorPrevious class end
sNormal, VisualInteractive move
<Leader>cNormalJump upwards to context
KeyModeDescription
ffNormalFormat code
FFNormalFormat and save
KeyModeDescription
<Leader>docNormal, VisualCreate doc signature annotation
<Leader>ccNormal, VisualToggle inline comment
<Leader>cbNormal, VisualToggle block comment
KeyModeDescription
<Ctrl-w>,<Del>Normal, InsertDelete previous word
<Leader>qqNormalSurround word with double quotes
<Leader>qNormalToggle between single and double quotes
<Leader>hNormalToggle cloak on .env and .yaml files
KeyModeDescription
¨Normal, Insert, Operator, VisualCreate or toggle fold
KeyModeDescription
<Tab>Normal, VisualIndent
<S-Tab>Normal, VisualUnindent
<A-k>Normal, VisualMove line/s up
<A-j>Normal, VisualMove line/s down
KeyModeDescription
<Leader>smNormalSearch marks
m}NormalNext mark
m{NormalPrevious mark
KeyModeDescription
m,NormalSet alpha mark
m;NormalToggle alpha mark
m[0-9]NormalSet bookmark group [0-9]
dm[0-9]NormalDelete bookmark group [0-9]
dm=NormalDelete current line mark
KeyModeDescription
<Ctrl-Down>NormalPrevious buffer
<Ctrl-Up>NormalNext buffer
{n}kNormalMove up n lines
{n}jNormalMove down n lines
<Shift-Up>Normal, Visual, XScroll up
<Shift-Down>Normal, Visual, XScroll down
sNormal, Visual, XFlash Search
SNormal, Visual, XFlash Treesitter
rX, OFlash Treesitter Search
KeyModeDescription
<Ctrl-x>NormalClose buffer
KeyModeDescription
<Ctrl-w><Left>NormalFocus window left
<Ctrl-w><Right>NormalFocus window right
<Ctrl-w><Up>NormalFocus window above
<Ctrl-w><Down>NormalFocus window below
<Leader>wmNormalWindow interactive move
<Leader>winNormalWindow picker
KeyModeDescription
<Ctrl-w>xNormalClose window
<Leader>w-NormalHorizontal split
<Leader>w|NormalVertical split
w<Left>NormalResize window left
w<Right>NormalResize window right
w<Up>NormalResize window up
w<Down>NormalResize window down
<Leader>fsNormalMaximize window
<Ctrl-w> =NormalEqualize windows dimensions
KeyModeDescription
<Leader>w<Left>NormalMove window left
<Leader>w<Right>NormalMove window right
<Leader>w<Up>NormalMove window up
<Leader>w<Down>NormalMove window down
KeyModeDescription
<Tab><Right>NormalNext tab
<Tab><Left>NormalPrevious tab
KeyModeDescription
<Tab>nNormalNew tab
<Tab>xNormalClose tab
<Tab>rNormalRename current tab
<Tab>wNormalSave *
KeyModeDescription
<Leader>saNormalCode actions
<Leader>sraNormalSearch *
<Leader>sdeNormalDefinitions
<Leader>srNormalReferences
<Leader>sffNormalSymbols
<Leader>sicNormalIncoming calls
<Leader>socNormalOutgoing calls
<Leader>siNormalImplementations
<Ctrl-Shift-Left>NormalGo to definition
<Ctrl-Shift-Right>NormalGo to declaration
<Ctrl-k>InsertSignature definition
KNormalSignature docs
KeyModeDescription
<Leader>sdNormalShow Buffer diagnostics
<Ctrl-e>NormalNext diagnostic
<Ctrl-p>NormalPrevious diagnostic
KeyModeDescription
<Leader>rnInsert, Normal, VisualRename symbol
KeyModeDescription
<Leader>dBNormalSet breakpoint with condition
<Leader>dnNormalStart new session
<Leader>dcNormalContinue or start session
<Leader>dbNormalToggle breakpoint
<Leader>dsoNormalStep over
<Leader>dsiNormalStep into
<Leader>doNormalStep out
<Leader>dpNormalPause execution
<Leader>dsNormalStop session
<Leader>dexNormalToggle REPL
nbNormalNext breakpoint
pbNormalPrevious breakpoint
sbNormalCurrent stopped breakpoint
KeyModeDescription
<Leader>tndNormalRun nearest test with DAP integration
<Leader>tfdNormalRun * file tests with DAP integration
<Leader>tnNormalRun nearest test
<Leader>tfNormalRun * file tests
<Leader>tfNormalRun * directory tests
<Leader>tsNormalShow summary
<Leader>toNormalShow output
<Leader>topNormalShow output panel
<Leader>twNormalRerun test on file changes
KeyModeDescription
<Leader>mkNormalMarkdown inline render
<Leader>mpNormalMarkdown preview
<Leader>tocuNormalMarkdown ToC unordered list
<Leader>tocoNormalMarkdown ToC ordered list
<bs>NormalPrevious markdown file
KeyModeDescription
<Leader>gNormalOpen Neogit
<Leader>gbNormalGit blame
<Leader>gbiNormalGit inline blame
<Leader>glNormalGit log
<Leader>gsNormalGit status
<Leader>gcNormalGit commits
KeyModeDescription
<Leader>shNormalSearch help tags
<Leader>skNormalSearch keymaps
<Leader>sfNormalFind files
<Leader>swNormalGrep string
<Leader>sgNormalLive grep
<Leader>soNormalRecent files
<Leader>sbNormalSearch buffers
KeyModeDescription
<Leader>sycNormalSchema picker
<Leader>syNormalSelect from matching schemas
<Leader>kvNormalChange Kubernetes API schema
KeyModeDescription
<Leader>;NormalToggle terminal
<Esc>TerminalExit terminal mode
KeyModeDescription
<Leader>ddbNormalOpens DB interface in a new tab
KeyModeDescription
<Ctrl-j>Insert, SelectExpand snippet
<Ctrl-l>Insert, SelectExpand or jump
<Tab>Insert, SelectJump to next placeholder
<Shift-Tab>Insert, SelectJump to previous placeholder
KeyModeDescription
<Leader>zNormalToggle focus mode
<Ctrl-a>NormalIncrement version
<Ctrl-x>NormalDecrement version
jqNormalJq/Yq quickfix
jqqNormalJq/Yq query