Say I had the following text
word1 word2 word3 word4
and the cursor was somewhere between word2
and word3
.
word2
and word3
with a single space in Vim?:s/ */ /g
However, I thought there might be something quicker like diw
but for spaces.
It would also be good if the strategy also worked when the cursor was on the w
of word3
or the 2
or word2
.
ciw
and then escape back to normal mode, although it will only work if you're on a space.