Hotkeys and shortcuts for vi (Linux)
(Total 31)
J |
Cursor Navigation (if your arrow keys dont work on that old Sun box....)Next line |
K |
Cursor Navigation (if your arrow keys dont work on that old Sun box....)Previous line |
H |
Cursor Navigation (if your arrow keys dont work on that old Sun box....)Left |
L |
Cursor Navigation (if your arrow keys dont work on that old Sun box....)Right |
Shift + G |
Cursor Navigation (if your arrow keys dont work on that old Sun box....)Bottom of document |
G G |
Cursor Navigation (if your arrow keys dont work on that old Sun box....)Top of document |
/ |
Fast SearchSearch Term |
N |
Fast SearchNext |
N |
Fast SearchPrevious |
: |
Command Modeenter command mode |
:w |
Command Modewrite |
:q |
Command Modequit |
:q! |
Command Modequit without saving |
:wq |
Command ModeWrite and quit |
ZZ |
Command ModeWrite and quit |
:e
|
Command Modeopen |
Esc |
Command Modeescape command mode |
u |
Command Modeundo last command |
I |
From Normal to Edit ModeInsert at current position |
I |
From Normal to Edit ModeInsert at start of line |
A |
From Normal to Edit ModeAppend to end of line |
O |
From Normal to Edit ModeInsert Line Below |
O |
From Normal to Edit ModeInsert Line Above |
S |
From Normal to Edit ModeDelete character at current position and insert |
S |
From Normal to Edit ModeDelete the current line and insert |
d w |
Clipboarddelete word |
d d |
Clipboarddelete line |
P |
Clipboardput after cursor |
P |
Clipboardput before cursor |
y w |
Clipboardcopy word |
y y |
Clipboardcopy line |