Chinaunix首页 | 论坛 | 博客
  • 博客访问: 56743
  • 博文数量: 8
  • 博客积分: 1598
  • 博客等级: 上尉
  • 技术积分: 90
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-09 15:35
文章分类

全部博文(8)

文章存档

2010年(1)

2009年(7)

我的朋友

分类: LINUX

2009-12-17 13:24:36

ci( -> change inside ()
ci{ -> change inside {}
ci" -> change inside ""

di( -> delete inside ()
di{ -> delete inside {}
di" -> delete inside ""

:g/pattern/d -> removing lines matching regular expression
:g/^$/d  -> remove blank lines

:%s/\s\+$//g -> remove trailing white spaces

dG -> delete all from the cursor to eof
A  ->  append text to end of the current line
I  ->  insert text at beginning of line
D  -> d$
C  -> c$

:set wrapmargin=XX -> useful option for editting nonprogram text,
specifies the size of the right margin that will be used to autowrap text
as you type. This saves manually typing carriage returns.
阅读(1322) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~