码迷,mamicode.com
首页 > 其他好文 > 详细

how to vi

时间:2016-12-03 01:07:37      阅读:155      评论:0      收藏:0      [点我收藏+]

标签:search   com   /var   windows   arch   win   dir   dex   paste   



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

标签:search   com   /var   windows   arch   win   dir   dex   paste   

原文地址:http://www.cnblogs.com/cuthead/p/6127546.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!