Vi (Linux) keyboard shortcuts

Vi (Linux)

Zeynel Öztürk -
5 years ago
- Shortcuts
4
J

Next line

0
K

Previous line

1
H

Left

1
L

Right

0
↑  Shift + G

Bottom of the document

1
G then G

Top of the document

Advertisement

4
:

Enter command mode

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

Insert at current position

1
↑  Shift + I

Insert at start of line

1
A

Append to end of line

0
O

Insert line below

0
↑  Shift + O

Insert line above

0
S

Delete character at current position and insert

0
↑  Shift + S

Delete the current line and insert

0
/

Search term

-1
N

Next

0
↑  Shift + N

Previous

0
D then W

Delete word

-1
D then D

Delete line

0
P

Put after cursor

0
↑  Shift + P

Put before cursor

0
Y then W

Copy word

1
Y then Y

Copy line


Share this page on:
Is this page helpful?
0 0

Advertisement

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/11/2019 8:10 PM UTC

How easy to press shortcuts: 84%

More information >>

Shortcut count: 23

Platform detected: Windows or Linux

Similar programs




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


 
No comments yet. Ask, or type the first one!