I like to emulate the normal behavior of C-Del/C-Backspace on Windows in VIM. Currently i'm using:
imap <C-Del> <C-o>dw
imap <C-Backspace> <C-o>db
This is close but not perfect. E.g. when trying to delete this from the end of the line
foo(1, 2)
with C-Backspace, this happens:
foo(1, )
How can I solve this?
your new <C-Backspace> is the same as internal <C-w>. So to solve your problem you can
imap <C-Backspace> <C-w>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With