Neovim Keyboard Shortcuts

A deep Neovim shortcuts guide: navigation, editing, buffers, splits, search, and macros.

Neovim Keyboard Shortcuts banner

Modes & Basics

Key / CodeDescription
iInsert mode
EscNormal mode
:wSave
:qQuit
:wqSave & quit
:qaQuit all

Navigation

Key / CodeDescription
h j k lLeft / Down / Up / Right
ggTop of file
GBottom of file
w / bNext / previous word
0 / $Start / end of line
Ctrl + d / Ctrl + uHalf-page down / up

Editing

Key / CodeDescription
ddDelete line
yyYank line
pPaste after
PPaste before
uUndo
Ctrl + rRedo
ciwChange inner word
di( Delete inside parentheses

Search & Replace

Key / CodeDescription
/patternSearch forward
?patternSearch backward
n / NNext / previous match
:%s/old/new/gReplace all
:%s/old/new/gcReplace with confirmation

Buffers & Tabs

Key / CodeDescription
:lsList buffers
:bnext / :bprevNext / previous buffer
:bdClose buffer
:tabnewNew tab
gt / gTNext / previous tab

Splits

Key / CodeDescription
:splitHorizontal split
:vsplitVertical split
Ctrl + w + wCycle windows
Ctrl + w + h/j/k/lMove between splits
Ctrl + w + =Equalize split sizes

Macros

Key / CodeDescription
q{register}Start recording macro
qStop recording
@{register}Play macro
@@Repeat last macro

Pro Workflow

Typical flow: search → change text objects → repeat with macros.

/pattern
ciw  # change inner word
qf  # record macro
@f  # replay
Knowledge is power.