Mark Woodward wrote:
Hi,
On Sat, 2007-03-24 at 20:09 -0700, Some user wrote:
Hello,
I want to bind Ctrl-Backspace in insert mode to deleting the word before it
just like Wordpad or Visual Studio (it actually gobbles up whitespace and
deletes the word before the whitespace and places cursor at location where
the first letter of the deleted word was).
I tried something like:
:map! <C-BS> <Esc>dbi
:inoremap <C-BS> <C-W>
might be what you're after, though just as easy to type <C-W>
ie control, shift w
No need for Shift: Ctrl + w is enough. (Ctrl-w and Ctrl-Shift-w are synonymous
to Vim.)
Except this doesn't work properly. :( Anyone has ideas on how to map it to
*exactly* the behavior in Windows' Visual Studio or Crimson Editor or
Wordpad? It would help me migrate from Visual Studio's editor to Vim. :D
Thanks,
cheers,
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
137. You decide to stay in college for an additional year or two,
just so you can have the free Internet access.