how to vi

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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的主要内容,如果未能解决你的问题,请参考以下文章

Linux : How to add rc.local in Debian 9

how to add them, how to multiply them

Junit : how to add listener, and how to extends RunListener to override behaviors while failed

How to POST data to backend server

How to Convert OST to PST

How to write threats to validity?