这篇文章是关于stackoverflow上what is the vim feature that you like the most 的总结,有很多非常有用的feature:
[ shift + i 查看当前文件中当前光标下出现的所有词,比如你想知道该单词
是否唯一则不用/xxxxx搜索,而是直接[ shift+i就可以搞定。dat/dit tag-block motions,比如在编辑html或xml时,dit可以删除包含在标签
里面的内容,dat可以删除当前光标下的标签。:tabe 直接在新的tab里面打开文件,比平时先新建tab然后在:e方便多了。d[number]d 删除多行Text Object(type :h text-objects) 可以让你多光标所在位置的整个区块操作,
如:可以使用d或者c,后面跟i或者a(inside a block or a whole block)加区块
符号如{(<"pw,其中p是指整个段落,w是指一个单词。
ca{  :Delete a block of code delimited by curly braces.ci(  :Change the content inside parenthesis.ci"  :Change the content inside a Stringda<  :Delete an html tagdap  :Delete current paragraph (handy to delete a whole function)daw  :Delete a wordw/]) 移动,w可以以单词为单位移动,]是以section为单位移动,)以句子为单位
移动。