Hi Tony.

Thanks to your advice, and I could have guessed that this is not a bug of
Vim but
some other software.

After checking my Ubuntu PC, I found strange key bindings that changes
key input from English to Japanese Kana input. And because of this bindings,
when I hit shit + alt or alt + shift in normal mode of Vim, no input was
possible.
Since with alt and shift key bindings, input mode had changed from English
to Japanese!
Vim do not understand any Japanese charactar in normal mode.

First time I thought its my input method doing this strange thing, and
checked
the relative config files but in vain.

Then I checked  InputDevice Section in xorg.conf and finally I found where
the alt + shift combination key bindings was defined like as follows.

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "jp106"
        Option         "XkbLayout"     "jp,jp"
        Option         "XkbOptions"    "grp:alt_shift_toggle,grp_led:scroll"
        Option         "XkbVariant"    "106,kana"
EndSection

This is default settins of my Ubuntu machine.
So, I changed this settings as follows.

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "jp106"
        Option          "XkbLayout"     "jp"
EndSection

and restarted X server and found alt + shift key bindings to disapear!
This will be a bug in Ubuntu xorg.conf.

Now everythings fine. My Vim get control of alt + shift keys :-)

Thanks


2008/11/12 Tony Mechelynck <[EMAIL PROTECTED]>

>
> On 12/11/08 05:17, [EMAIL PROTECTED] wrote:
> > Hello
> >
> > Now I'm using Vim 7.2 with patch upto 7.2.030 on Ubunut 8.04 PC.
> > And my Vim freeze whenever I hit shift-alt keys.
> >
> > I wonder if this is my own environmental probrem or bug.
> > Is there anybody who experienced the same probrem like me?
> >
> > Any advice would be appreciated.
> >
> > Thanks
>
>
> Works for me. In gvim 7.2.033 (Huge, Gnome2) on openSUSE 11.0 with KDE3,
> in Insert mode, Shift-Alt-F1 inserts the eight characters "<M-S-F1>" and
> Shift-Alt-z inserts the letter "Ú" (U+00DA LATIN CAPITAL LETTER U WITH
> ACUTE ACCENT), in both cases without the quotes of course.
>
> With the same build in Console mode in either konsole or the Linux
> (text) console, there is no hang, it's just that Vim doesn't get the
> Shift-Alt-something keychords and remains waiting for input. As soon as
> I press a "normal" key afterwards (such as a letter key with none of
> Alt, Ctrl or Shift), Vim inserts it. IMHO this is no bug of Vim but it
> could be a limitation in the konsole and linux terminals. I didn't try
> gnome-terminal or "plain-vanilla" xterm.
>
> BTW, pressing one or more modifier keys alone never does anything in
> Vim. This is normal: the keyboard driver doesn't insert anything into
> the keyboard buffer in that case.
>
> VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Nov 11 2008 22:47:36)
> Included patches: 1-33
> Modified by Bill McCarthy (float)
> Compiled by [EMAIL PROTECTED]
> Huge version with GTK2-GNOME GUI.  Features included (+) or not (-):
> [...]
>
>
> Best regards,
> Tony.
> --
> Executive ability is deciding quickly and getting somebody else to do
> the work.
>                -- John G. Pollard
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to