On Wed, 2 Nov 2011, [email protected] wrote:

Hi,

the zsh I am using is recoginzing ALT-backspace as "delete one word backward", which is very handy.

Unfortunately I have not found a way to map this in a similiar way for vim.

How can I map ALT-backspace in vim?

Try using <Esc><BS> as your {lhs}. Works for me under rxvt-unicode (what I normally use) and uxterm (tested). See the description under:

:help :map-alt-keys

for what's happening.

Most terminal emulators don't by default send what Vim assumes they will. Default for most terms is to send Alt+{key} as <esc> followed by {key}, but Vim expects {key} OR'ed with 0x80. Good emulators can be told to send what Vim expects, and it's possibly a better situation (not ambiguous between a literal <esc> then {key} and <alt>+{key}), but frankly, just as often it causes problems (cf. numerous posts about problems with mapping characters outside of US-ASCII).

--
Best,
Ben

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to