荔园在线
荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀
[回到开始]
[上一篇][下一篇]
发信人: antz.bbs@bbs.sjtu.edu.cn (猪肉王子), 信区: Linux
标 题: 我总结的vim的命令速查
发信站: 饮水思源 (Tue May 27 16:57:27 2003)
转信站: SZU!news.tiaozhan.com!news.neu.edu.cn!SJTU
j = arrow down
k = arrow up
h = arrow left
l = arrow right
x = delete the character at the cursor
dw = delete the whole word begin at the cursor
de = delete the whole word begin at the cursor (exclude the space)
d$ = delete the whole line begin at the cursor
dd = delete the whole line
note: [number] d {type:w,e,$,d} is the complete syntax of delete command ,
number is optional which means the times command will be executed.
p = paste the content in the buffer (commonly the content deleted by the
delet e command) to the line above the cursor
u = undo
U = undo the whole line
C^-R = redo
r = replace the charactor at the cursor
cw = replace the whole word
c$ = replace to the end of the line
note: [number] c {type} as has been mentioned in the delete command
C^-g = display the position information where you are in the file
Shift-G = move cursor to particular position , default it goes to the end of
file
usage: first type the line number you want ,then type Shift-G
/ = search
n = search the same pattern down
Shift-n = search the pattern in the backwards direction
? = search as "/" but in the backwards direction
% = parentheses match search ( "(,),{,},[,]" )
:{%,"#,#"}s/old/new/{g} = use new replace old , g means chang all in current
line , default only
change the first ocurrence of "old" ,
% means change all occurrence in the whole file
#,# means change form line # to line #
:! command = execute any external command
:#,# w filename = write content between line # to line # to filename
:r filename = retrieve filename at the cursor location
o = new line below the cursor
O = new line above the cursor
$ = goto the end of the line
a = append after cursor
A = append at the end of the line
:set option = set options for search or substitute operation. (e.g : ic (ign
ore case))
--
你以为躲起来我就找不到你了吗?
没有用的,你是这样拉哄的男人,
不管在什么地方都像漆黑中的萤火虫一样,那样的鲜明,那样的出众
你那犹豫的眼神、唏嘘的胡渣子、神乎奇技的刀法、还有那杯DRY MARTINI
都深深的迷住了我
http://bbs.sjtu.edu.cn/showfile?name=1053257675cat.jpg
※ 来源:·饮水思源 bbs.sjtu.edu.cn·[FROM: 211.80.42.54]
[回到开始]
[上一篇][下一篇]
荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店