Search code examples
vim

There's cit, dit, yit (change, delete, yank inside tag) on vim... is there something like pit (paste inside tag?)


Using vim I'm used to motion command like cit, dit, yit when editing html/xml files. I like . even more after using this commands because I can repeat what I did with just one keystroke.

I would like to know if theres something like pit (paste inside tag) already available, that deletes inside the tag and paste what I wanted (from + register for example) and make . available like cit, or if I'll need to create a mapping for that.


Solution

  • No, but you can select visually and put your text:

    vitp