vi editor keyboard shortcuts 

vi editor  

Zeynel -
2 months 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)

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

More information >>

Updated: Updated program information. (2 updates.) 2024/10/17 上午12:51:34 New program added.
2024/10/17 上午12:55:31 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.
Checking site status...
 
No comments yet. Ask, or type the first one!

Latest articles