You are on page 1of 1

Vi Quick Reference Guide

Commands Description
:x Save the file and quit
:q! Quit without saving the file
i Insert starting left of the cursor
a Append starting right of the cursor
ESC Exit insert/append mode
arrows Move cursor
/text Search string text (case sensitive search)
n Search next occurrence of the searched item
x Delete character under the cursor
dd Delete line under the cursor
u Undo last change
:0 Beginning of the file
:n Go to line n
G End of the file
^ Beginning of the line
$ End of the line
:set list See special characters in the file
yy Copy the line into the buffer
5yy Copy 5 lines into the buffer
p Paste buffer after the current line

By: It's FOSS

You might also like