vi tutorial QWERTY Gray


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


Wyszukiwarka

Podobne podstrony:
Nauka o materiałach 2 VI
Fiz pol VI 2014
EKO VI Promocja jako proces komunikacji
Streszczenie Pieśni VI Iliady
Prezentacja VI dzia
Capítulo VI
The?vil s Lover The Resurrect
tutorial firstpage
The Pacific Pt VI PROPER HDTV XviD NoTV
Paradies Sonata VI
R4 VI(1)
Polykarbon body tutorial5
Dobie Gray nie żyje
CHILLOUT rozdział VI

więcej podobnych podstron