Vi (Linux) keyboard shortcuts 

Vi (Linux)  

Zeynel -
6 years ago
- Shortcuts
0
S

Delete character at current position and insert

1
A

Append to end of line

0
I

Insert at current position

0
P

Put after cursor

1
L

Right

1
H

Left

0
O

Insert line below

0
K

Previous line

-1
N

Next

3
J

Next line

0
/

Search term

0
↑  Shift + S

Delete the current line and insert

0
↑  Shift + P

Put before cursor

1
↑  Shift + I

Insert at start of line

0
↑  Shift + G

Bottom of the document

0
↑  Shift + O

Insert line above

0
↑  Shift + N

Previous

4
:

Enter command mode

1
G then G

Top of the document

-1
D then D

Delete line

1
Y then Y

Copy line

0
D then W

Delete word

0
Y then W

Copy word

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

Advertisement


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

Advertisement

Program information

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

Web page: ex-vi.sourceforge.net

Last update: 11.11.2019 20:10 UTC

How easy to press shortcuts: 84%

More information >>

Shortcut count: 23

Platform detected: Windows or Linux

Similar programs



User operations

Add Vi (Linux) to your list of favorites

Advertisement


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


Only registered users can post links.
 
No comments yet. Ask, or type the first one!

Latest articles