I would think this would work to make backspace delete the entire previous word in insert mode:
imap <BS> <C-W>
but it doesn't. Tried in vim 8.0 and neovim 0.2.2 iterm2 if that matters.
Any way to accomplish this?
Per comments below (and after reading the linked question) I've done the following:
- switched to
- tested the output of
The output was the following:
i <BS> *@<RC>=AutoPairsDelete()<CR> i <BS> * <C-W>
Removing the autopairs plugin makes backspacing over words work correctly, but I like that plugin and would like to have both behaviors.