> Can anyone help with this? (And does anyone know how to map this in the BASH
> shell too?)
Try #bash on freenode.
Richard
Are you trying to do this in gvim or in vim? It works fine for me
in gvim. It won't work in vim, however. There is no ASCII
character for <C-BS> and there is no termcap/terminfo code for
<C-BS>. Hence, terminals have no standard way to encode the <C-BS>
key combination to send to vim.
Regards,
Gary
0x7F is supposed to be Control-question mark, known to Vim as <C-?>
Best regards,
Tony.
--
Microsoft's definition of a boolean: TRUE, FALSE, MAYBE
"Embrace and extend"...?
It's not clear to me why you don't have normal backspace behavior
from your Backspace key. I started playing with this a bit and
discovered that the Backspace key on my keyboard emits <BS> (^H) but
that Ctrl-Backspace emits <Del> (^?). That's when running vim in an
xterm window under KDE on a Red Hat Linux system. So
:inoremap <C-?> <C-W>
gives me exactly the behavior you want.
It could be that your system is configured so that your Backspace
key normally emits <Del> and so that Ctrl-Backspace is
indistinguishable from Backspace. You might be able to fix that, at
least while running vim. This is discussed a bit in ":help fixdel".
Regards,
Gary