Tuesday, September 24, 2013

Re: Trouble with alt/meta mappings

On 24/09/13 13:54, Hendrik Jaeger wrote:
> Hi,
>
> I use vim-latexsuite in an urxvt terminal with neo keyboard layout.
> The terminal is set to _not_ send an ESC-prefix when meta is pressed,
> but to set the 8th bit.
> vim-latex has a mapping for 'meta-i' to insert the command for a new
> item in a list.
>
> When I press 'meta-i' followed by two arbitrary other keys, I get é in
> vim now. When I press the keys usually needed to get é, vim does what
> 'meta-i' is supposed to do.
>
> With the terminal set to send an ESC-prefix, behaviour does not change
> much: meta-i moves the cursor to the left and é still inserts a new
> item …
>
>
> This is quite annoying, especially in combination with vim-latexsuite
> which relies heavily on mappings using 'meta', and I was unable to get
> it to work properly.
> Am I missing something important?
> Is this a problem in vim? Can it be fixed?
>
> Thanks and best regards
>
> henk
>

Try reading ":help map-alt-keys", it might give you some enlightenment
for your trial-and-error procedure.

Note that é (0xE9) is seen by Vim as the same as Alt-i (i.e. 0x80 +
0x69); so hitting alt-i in Insert mode should insert the é letter (with
me it does, in gvim for GTK2/Gnome2), and hitting the é key (if you have
one — I do, on my AZERTY keyboard) should trigger any mapping defined
for <M-i> for the mode you are in.


Best regards,
Tony.
--
This screen intentionally left blank.

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: