Vim: changing text between html tags

I'm just wondering how to change text between html tags directly from normal mode, for example, how can we change text in double quotes thanks to ci" ?

+42
vim
Jul 07 '10 at 13:40
source share
2 answers

To work between tags, replace " with t , as in cit . Or dit to remove between tags and remain in command mode.

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

+71
Jul 07 2018-10-07T00:
source share
 cit 

Mnemonics: "Change internal tag" - this also corresponds to the nesting of tags.

+27
Jul 07 2018-10-10T00:
source share



All Articles