Vi (Linux) keyboard shortcuts

Vi (Linux)

Zeynel Abidin Öztürk -
35 days 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) (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/

Shortcut count: 23

Similar programs


  1. Keyboard symbolsKeyboard symbols
    38745    1
  2. Grand Theft Auto VGrand Theft Auto V
    33191   
  3. Apex Legends (PC)Apex Legends (PC)
    32006   
  4. Fortnite (PC)Fortnite (PC)
    29749    2
  5. PlayerUnknown's BattlegPlayerUnknown's Battleg
    29384    2
  6. The Sims 4The Sims 4
    27450    3
More keyboard shortcuts...

Latest articles

Advertisement

  Subscribe to our mailing list!

Useful technology tips and keyboard shortcuts will appear in your inbox.

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

What is your favorite Vi (Linux) hotkey? Do you have any useful tips for program? Let other users know below.