In vim you can do daw
to delete the entire word, but it also removes the space after the word, (caw
too).
Is there a way to operate on the entire word without effecting the space around it?
For example
a d c
^
Performing caw
-> b
Gives us:
a bc
Is there a way spaces can be treated as other delimiters, brackets for eg, which would give us:
a b c
?
While this isn't what you would do as a user, it makes writing macros more difficult, since surrounding delimiters aren't as predictable.
Note, this is quite similar to this question, but not identical since the word may be surrounded by tabs or other delimiters. https://stackoverflow.com/questions/1607904/vim-deleting-from-current-position-until-a-space