vi (Linux)

Command Mode

write

:w

All hotkeys for vi (Linux)

Cursor Navigation (if your arrow keys dont work on that old Sun box....)
Next line

J

Cursor Navigation (if your arrow keys dont work on that old Sun box....)
Previous line

K

Cursor Navigation (if your arrow keys dont work on that old Sun box....)
Left

H

Cursor Navigation (if your arrow keys dont work on that old Sun box....)
Right

L

Cursor Navigation (if your arrow keys dont work on that old Sun box....)
Bottom of document

Shift + G

Cursor Navigation (if your arrow keys dont work on that old Sun box....)
Top of document

G G

Fast Search
Search Term

/

Fast Search
Next

N

Fast Search
Previous

N

Command Mode
enter command mode

:

Command Mode
write

:w

Command Mode
quit

:q

Command Mode
quit without saving

:q!

Command Mode
Write and quit

:wq

Command Mode
Write and quit

ZZ

Command Mode
open

:e

Command Mode
escape command mode

Esc

Command Mode
undo last command

u

From Normal to Edit Mode
Insert at current position

I

From Normal to Edit Mode
Insert at start of line

I

From Normal to Edit Mode
Append to end of line

A

From Normal to Edit Mode
Insert Line Below

O

From Normal to Edit Mode
Insert Line Above

O

From Normal to Edit Mode
Delete character at current position and insert

S

From Normal to Edit Mode
Delete the current line and insert

S

Clipboard
delete word

d w

Clipboard
delete line

d d

Clipboard
put after cursor

P

Clipboard
put before cursor

P

Clipboard
copy word

y w

Clipboard
copy line

y y

Similar combinations for other applications


Vim (Linux)
Write (save) the file, but don't exit
Exiting

:w