I was also looking for a solution for this, and using w and W did not work fine for me when working with AngularJS, where you can have attributes like this:
<input ng-show="product.inUse" ng-model="product.customerPrice" />
What I started to do is move my cursor to the spaces before the attribute, for example here:
<input| ng-show="product.inUse" ng-model="product.customerPrice" />
Then press d2f "(y instead of d to copy), which gives me:
<input| ng-model="product.customerPrice" />
He will search for the symbol "twice" and delete everything, including the last.
source share