E end. WORD U undo line. I insert at bol. D delete to eol Hscreen top. T back. 'till ... version at http://www.viemu.com
vi / vim graphical cheat sheet
Esc
Dvorak version by Peter Hosey
normal mode
~ `.
toggle case goto mark
! 1
motion
@ # $. ( ) {. %. ^ & * [. 2 3 4. 5. 6 7 8 9 0 < > ". P. Y F G C R L ?. . . . .' . , . p y g c r / f l _. A. O E U I D H T N S a o e u t. n s i d h : Q. J K X B M W V Z. ; q. x m w v z. j k b external filter
play macro
prev ident
append
subst char
delete
1,3
un- 3 indent
indent
3
goto mk. bol
reverse t/T/f/F
repeat cmd
q.
"soft" bol
repeat :s
paste before
yank line
paste 1 after
1,3
yank
eof/ goto ln
change to eol
fwd to char
extra6 cmds
change
open above
end WORD
undo line
insert at bol
delete to eol
append
open below
end word
undo
insert mode
delete
ex mode
repeat t/T/f/F
record macro
moves the cursor, or defines the range for an operator
join lines
begin sentence
"back" fwd
append at eol
ex cmd line
next ident
end sentence
begin parag.
"hard" bol
misc
extra6 cmds
fwd to char
reg. 1 spec
direct action command, if red, it enters insert mode requires a motion afterwards, operator operates between cursor & destination special functions, extra requires extra input commands with a dot need a char argument afterwards bol = beginning of line, eol = end of line mk = mark, yank = copy res := base + v.offset; words: WORDs: res := base + v.offset; command
goto match
eol
help
replace mode
1,3
screen top
1,3
screen bottom
}. ].
find rev.
replace char
find
end parag. misc
+. = |. \.
next line
auto 3 format
back 'till
prev (find)
subst line
"soft" bol down
bol/ goto col
'till
next (find)
subst char
prev line
not used
backspace
prev WORD
screen mid'l
next WORD
visual lines
extra4 quit
delete char
prev word
set mark
next word
visual mode
extra5 cmds
Main command line commands ('ex'):
Notes:
:w (save), :q (quit), :q! (quit w/o saving) :e f (open file f), :%s/x/y/g (replace 'x' by 'y' filewide), :h (help in vim), :new (new file in vim),
(1) use "x before a yank/paste/del command to use that register ('clipboard') (x=a..z,*) (e.g.: "ay$ to copy rest of line to reg 'a')
Other important commands:
CTRL-R: redo (vim), CTRL-F/-B: page up/down, CTRL-E/-Y: scroll line up/down, CTRL-V: block-visual mode (vim only)
Visual mode: Move around and type operator to act on selected region (vim only)
(2) type in a number before any action to repeat it that number of times (e.g.: 2p, d2w, 5i, d4j) (3) duplicate operator to act on current line (dd = delete line, >> = indent line) (4) ZZ to save & quit, ZQ to quit w/o saving (5) zt: scroll cursor to top, zb: bottom, zz: center (6) gg: top of file (vim only), gf: open file under cursor (vim only)
Based on QWERTY/SVG version at http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html