首页 > 代码库 > how to vi

how to vi



h:left,j:down,k:up,l:right.
Can‘t open file for writing:without creat file right,:q!,mkdir cuthead.github.io/windows2003/,touch cuthead.github.io/windows2003/index.html,vi cuthead.github.io/windows2003/html.html #delete /var/tmp/index.html.swp
wq #write and quit
x #cut one letter
dd#cut one line
/ #search
s/a/b/ #replace first word in current line
%s/a/b/g #replace all
q! #force quit
G #jump to end of file
gg #jump to beginning of file
v #select
d #cut
p #paste
command+v #paste
$ #end of line
0 #beginning of line
y #copy
u #undo
ctrl+f #page down
ctrl+b #page up
a #add text to tail

how to vi