☰ Neovim Key Combos
# Action Key Combo

Basic Navigation

1Move lefth
2Move downj
3Move upk
4Move rightl
5Go to the top of the filegg
6Go to the bottom of the fileG
7Jump forwards to the start of a wordw
8Jump backwards to the start of a wordb
9Go to the beginning of the line0
10Go to the end of the line$

Editing

11Insert before the cursori
12Insert after the cursora
13Open a new line below the current lineo
14Open a new line above the current lineO
15Delete the character under the cursorx
16Delete the current linedd
17Change (replace) to the start of the next wordcw

Modes

18Return to normal modeEsc
19Enter visual modev
20Enter visual line modeV
21Enter visual block modeCtrl + v
22Enter replace modeR

Search and Replace

23Search for pattern/pattern
24Search backwards for pattern?pattern
25Repeat search in the same directionn
26Repeat search in the opposite directionN

Window Management

27Split window horizontally:split
28Split window vertically:vsplit
29Close window:q
30Move to next windowCtrl + w w
31Move to previous windowCtrl + w p

Buffer Management

32Open file:e filename
33Save file:w
34Save and quit:wq
35Quit without saving:q!
36Exit all:qa

Command-line

37Command-line mode:
38Execute last command@@
39Enter normal modeEsc

Macros

40Record macroq
41Stop recording macroq
42Play macro@

Visual Mode

43Select allggVG
44Replace selectionr
45Copy selection from registery
46Copy selection to clipboard"+y
47Paste selection from clipboard"+p
48Copy selection to clipboard and delete!pbcopy
49Delete selectiond

Plugins

50Plugin-specific keybinding 1:command
51Plugin-specific keybinding 2:command
52Plugin-specific keybinding 3:command

Formatting

53Re-indent the current line==
54Re-indent the entire filegg=G
55Re-indent the block enclosed in {}=i{
56Re-indent the current paragraph=ip
57Re-indent a block enclosed in {}, including the braces=a{
58Re-indent from the current line to the end of the file=G
59Re-indent from the beginning of the file to the current line=gg
60Re-indent the previous line=[
61Re-indent the next line=]
62Re-indent the block enclosed in }=}

Commenting

63Comment a linegcc
64Comment visual selectiongc
65Comment motiongc{motion}

Replace Methods

66 Substitute Command
• Press Esc to ensure normal mode.
• Type :50,51s/sheri/dev-code/g.
• Hit Enter.
• Replaces "sheri" with "dev-code" only in lines 50 and 51.
67 Manual Selection
• Move to the first "sheri" and press cw.
• Type dev-code and hit Esc.
• Move to the next "sheri" using n.
• Repeat cw dev-code.
68 Visual Line Mode
• Move to the first line.
• Press V (visual line mode) and j to highlight the second line.
• Press : (auto-fills with :'<,'> for selected lines).
• Type s/sheri/dev-code/g and hit Enter.
69 Visual Block Mode
• Go to the start of "sheri" in the first line.
• Press Ctrl+v for visual block mode.
• Use j to select the second line.
• Press e to highlight "sheri" on both lines.
• Press c to change and type dev-code, then Esc.