I frequently use
<C-w> in insert mode to back up when I mistype things. I've noticed some odd behavior if I start insert mode when in the middle of a word.
For example, if I have the following line (cursor location indicated by
I love to use CamelCase ^
When I am at that cursor location and do the key combination
i<End><C-w>, I am left with the following:
I love to use Camel ^
I expected that
<C-w> would erase up to the beginning of
CamelCase since that is a word. Is
<C-w> only supposed to erase up to the beginning of where I started inserting? Or is there some setting I have to flip to get it to delete the entire word?
If I press
<C-w> again, it does erase the rest of the word. I just wasn't expecting a word boundary to appear where insert mode started.
This is using Vim 8.1 (2018 May 18) for Windows.