Vi (Linux) keyboard shortcuts

Vi (Linux)

Zeynel Abidin Öztürk -
14 months ago
- Shortcuts
J

Next line

K

Previous line

H

Left

L

Right

↑   Shift + G

Bottom of the document

G then G

Top of the document

:

Enter command mode

:w Write
:q Quit
:q! Quit without saving
:wq Write and quit
ZZ Write and quit
:e Open
I

Insert at current position

↑   Shift + I

Insert at start of line

A

Append to end of line

O

Insert line below

↑   Shift + O

Insert line above

S

Delete character at current position and insert

↑   Shift + S

Delete the current line and insert

/

Search term

N

Next

↑   Shift + N

Previous

D then W

Delete word

D then D

Delete line

P

Put after cursor

↑   Shift + P

Put before cursor

Y then W

Copy word

Y then Y

Copy line


Share this page on:

Program information

Program name: Vi (Linux) Vi (Linux) (Text editing)

Vi is a text editor originally developed for Unix operating system. The name "vi" is derived from the abbreviation for the ex command "visual". A 2009 survey of Linux Journal readers found that Vi was the most widely used text editor among respondents.

Web page: http://ex-vi.sourceforge.net

Last update: 11 Nov 2019

Shortcut count: 23

How easy to press shortcuts: 84%

Platform detected: Windows or Linux (not macOS)

Similar programs



Advertisement

Join our mailing list!

Your email is kept private and we don't spam.