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.
dwxda".dwto delete the attribute name,xto delete the=, thenda"to delete everything inside the quotes, and the quotes themselves.dW(this includes the name, the=and the quoted value). Unless it's the last attribute before the tag's closing>. In that case I'd use2df"or @Will's solution.