Vi Cheat Sheet For Beginners

Basic Vi commands

This is not a detailed tutorial to teach you each and every aspect of Vi editor. In fact, it’s not a tutorial at all. It’s just a collection of basic Vi commands and their brief description for a quick reference.

: 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)

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

https://dailyuploads.net/e63uk29meke2
How To Download Instructions

How To Download Instructions

Share on Facebook0Share on Google+0Tweet about this on TwitterShare on LinkedIn0

You may also like...