vi editor keyboard shortcuts 

vi editor  

Zeynel -
30 days ago
- Shortcuts
0
I

Switch to Insert mode

0
Esc

Switch to Command mode

0
: then W

Save and continue editing

0
: then W then Q

Save and quit/exit vi

0
or ↑  Shift + Z then ↑  Shift + Z
0
: then Q then !

Quit vi and do not save changes

0
Y then Y

Yank (copy) a line of text

0
P

Paste a line of yanked text below the current line

0
O

Open a new line under the current line

0
↑  Shift + O

Open a new line above the current line

0
↑  Shift + A

Append to the end of the line

0
A

Append after the cursor's current position

0
I

Insert text at the beginning of the current line

0
B

Go to the beginning of the word

0
E

Go to the end of the word

0
X

Delete a single character

0
D then D

Delete an entire line

0
↑  Shift + X then D then D

Delete X number of lines

0
↑  Shift + X then Y then Y

Yank X number of lines

0
↑  Shift + G

Go to the last line in a file

0
↑  Shift + X then ↑  Shift + G

Go to line X in a file

0
G then G

Go to the first line in a file

0
: then Number

Display the current line's line number

0
H

Move left one character

0
J

Move down one line

0
K

Move up one line

0
L

Move right one character


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

Advertisement

Program information

Program name: vi editor vi editor (Text editing)

The vi editor is a screen-oriented text editor created for Unix systems by Bill Joy. Known for its efficiency and simplicity, vi operates in two modes: insert and command. It remains a fundamental tool for Unix users and system administrators.

Web page: cs.colostate.edu/helpdocs/vi.h...

More information >>

Updated: Updated program information. (2 updates.) 10/17/2024 12:51:34 AM New program added.
10/17/2024 12:55:31 AM Updated program information.

Shortcut count: 27

Platform detected: Windows or Linux

Similar programs



User operations

Add vi editor to your list of favorites

Advertisement


What is your favorite vi editor 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!