Skip to content

Neovim Cheatsheet

Basic Movements

ActionCommand/Shortcut
Move cursor upk
Move cursor downj
Move cursor lefth
Move cursor rightl
Jump to the beginning of the line0
Jump to the end of the line$
Jump to the top of the filegg
Jump to the bottom of the fileG
Jump to the middle of the fileM
Jump forward by wordw
Jump backward by wordb

Editing

ActionCommand/Shortcut
Enter insert mode (before cursor)i
Enter insert mode (append)a
Insert at the beginning of the lineI
Insert at the end of the lineA
Delete character under cursorx
Delete worddw
Delete to the end of the lineD
Cut (delete) the current linedd
Copy (yank) the current lineyy
Paste below cursorp
Paste above cursorP
Undo the last changeu
Redo the last undone changeCtrl + r

File Management

ActionCommand/Shortcut
Open a file:e <filename>
Save the current file:w
Save and quit:wq
Quit without saving:q!