注册 登录
编程论坛 Ubuntu

vim小窍门之 :h text-object

静夜思 发布于 2011-11-17 01:58, 5563 次点击
:h text-object

打开text-object帮助。

常用的几个命令,做下笔记:
    "dl"    delete character (alias: "x")        |dl|
    "diw"    delete inner word            *diw*
    "daw"    delete a word                *daw*
    "diW"    delete inner WORD (see |WORD|)        *diW*
    "daW"    delete a WORD (see |WORD|)        *daW*
    "dd"    delete one line                |dd|
    "dis"    delete inner sentence            *dis*
    "das"    delete a sentence            *das*
    "dib"    delete inner '(' ')' block        *dib*
    "dab"    delete a '(' ')' block            *dab*
    "dip"    delete inner paragraph            *dip*
    "dap"    delete a paragraph            *dap*
    "diB"    delete inner '{' '}' block        *diB*
    "daB"    delete a '{' '}' block            *daB*
4 回复
#2
我叫沃恩2013-06-13 17:29
最近刚装了linux,这些对我来说,非常有用,谢静老大!!
#3
zklhp2013-06-14 18:01
2011年的帖子。。
#4
guansong282014-08-01 17:29
我才发现我是不是潜水潜的太深了。。
#5
heroxianf2016-07-23 11:25
都专研技术去了。
1