John Little <[email protected]> [09-09-07 18:00]: > > On Sep 7, 2:29 pm, [email protected] wrote: > > > on the commandline (zsh) I often use Alt-backspace to delete > > the word before the cursor. > > > > Is there any way to map a vim command (-sequence) to Alt-backspace > > to do the same ? > > This depends on OS, and gui or terminal emulator. On my kubuntu gvim > (with gtk2-gnome gui) can map alt-backspace, but vim in gnome-terminal > or konsole can't, vim in xterm can. > > To see for your set-up, go into vim's insert mode, type control v, alt- > backspace. (If control v is paste for you, use control q.) If you > see something inserted into your buffer, it can go on the left hand > side of a map command. In my gvim > > :map! <M-BS> <C-W> > > deletes the word before the cursor in insert mode. > > Regards, John > Hi John,
when pressing C-v Alt-Backspace I get an into my buffer. The map command works but the mapping dont... sigh Thanks anyway for your help! :) Best regards, mcc -- Please don't send me any Word- or Powerpoint-Attachments unless it's absolutely neccessary. - Send simply Text. See http://www.gnu.org/philosophy/no-word-attachments.html In a world without fences and walls nobody needs gates and windows. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
