Vim: changing/deleting up to the end of a “block”

前端 未结 4 2069
感动是毒
感动是毒 2021-02-01 07:11

When you have a block of text delimitated by brackets or quotes, you can use

ci\"
da(

and so on to change that block of text. But is there a wa

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-01 07:26

    Benoit's answer of using t f T and F is the best way that I know of. When it comes to deleting to the end of a parenthesised block you can use ]). This will take into account any nested parenthesis. There is also a corresponding [(, ]} and [{.

提交回复
热议问题