30 Vi Keyboard Shortcuts

Vi Shortcuts will assist you in editing existing files and composing new emails. Initially, it may require some effort, but soon it will become second nature to you. This will streamline your writing, programming, and data manipulation tasks. In Command Mode, almost every key on the keyboard serves a specific function.

Vi is highly popular due to its efficient command system. Vi aims to provide users with a robust editing experience without the need to leave the keyboard row. The Command Mode makes use of the below list of Vi shortcuts, which help navigate files, manipulate text, and search and replace phrases. Download the Vi shortcuts list in PDF format.

Command Mode Shortcuts

ActionVi Shortcuts
Enter command mode:
write:w
quit:q
quit without saving:q!
Write and quit:wq
Write and quitZZ
open:e
Escape command modeEsc
undo the last commandu

Setting your status Shortcuts

ActionVi Shortcuts
delete wordd w
delete lined d
put after cursorP
put before cursorP
copy wordy w
copy liney y

From Normal to Edit Mode Shortcuts

ActionVi Shortcuts
Insert at the current positionI
Insert at the start of the lineI
Append to the end of the lineA
Insert Line BelowO
Insert Line AboveO
Delete the character at the current position and insertS
Delete the current line and insertS

Fast Search Shortcuts

ActionVi Shortcut keys
Search Term/
NextN
PreviousShift + N

Cursor Navigation Shortcuts

ActionVi Shortcut keys
Next lineJ
Previous lineK
LeftH
RightL
Bottom of documentShift + G
Top of documentG G

Vi was the precursor to what is now known as Vim, an enhanced version of Vi. Vim is a text editor commonly used on Linux devices. We have compiled a list of Vim Shortcuts for your reference!

READ NEXT:

Back to top button