Penguin
Note: You are viewing an old revision of this page. View the current version.

This page is kinda intended as a quick way of listing the various nifty commands in vi(1) and vim(1).

Movement Commands

h,j,k,l
left, down, up, right
fx
Move to next charactor x.
Fx
Move to previous charactor x
tx
Move to before next charactor x
Tx
Move to after previous charactor x
%
Goto matching charactor

Action(?) Commands

c
Change, delete text and go into insert mode
C
Change line
y
Yank (copy)
Y
Yank Line
d
Delete (cut)
D
Delete Line

Misc commands

v
Visually select by charactor
V
Visually select by line
mx
Save cursor position into register x
`x
Goto charactor position in register x
' x
Goto line in register x

Useful examples:

ct"
Change everything until the next "