I’m new to editing html with VIM. I’m using matchit, ultisnips and surround to help me along the way.
One area which I can’t seem to accomplish easily is editing attributes.
I want to go from: (cursor is |)
<input type="submit|" name="some_name" value="" id="some_name">
to:
<input type="submit" id="submit_button">
What is the fastest way to do this?
Right now, I’m doing a lot of ‘f’ based searches.
Possible solutions
This method requires counting so maybe you would rather do
wdWand just hit.until it is correct.Moves to the next word so the start of
name=".."the delete withdtil/ id. This solution can also delete across lines. You can use/...with other operators as well, e.g.c,y, and=.Of course you can do the method you are using currently with
fand just repeat with.