Using the cursor or colon, you can do d F , d E. Part d F will delete back to the comma and include it. Then d E will be deleted until the next space character. The best part about this is that if there is no preceding comma, it will still do the same. So with the code
if :focus, "should do something" do
If the cursor is in a colon, this macro will remove only the :focus, part, although it will leave two spaces.
source share