开发者

Vim : changing text between html tags

开发者 https://www.devze.com 2023-01-06 12:18 出处:网络
I just wonder how to change the text between h开发者_运维知识库tml tags right from the normal mode, like the way we can change text within double-quotes thanks to ci\" ?For working between tags replac

I just wonder how to change the text between h开发者_运维知识库tml tags right from the normal mode, like the way we can change text within double-quotes thanks to ci" ?


For working between tags replace the " with a t, as in cit. Or dit to delete between tags and remain in command mode.

As you may already know, you can do ci[, ci{, or ci( to work between matched square or curly brackets, or parentheses. These commands also work with the closing character, so you can do ci], ci}, or ci).


cit

Mnemonic: "Change Inner Tag" -- This obeys tag nesting, as well.

0

精彩评论

暂无评论...
验证码 换一张
取 消