Hi,

Thanks for the info Bram.
I changed my terminal to send CSI sequence [27;3;121~ for M-y and a vim 
mapping for <M-y> now works :-)
It was related to altSendsEsc logic about what the terminal should send for 
these keys.

thx again for all things vim,
-m

On Wednesday, April 7, 2021 at 1:01:30 PM UTC-4 Bram Moolenaar wrote:

>
> > If I use neovim the mapping works as expected.
> > With vim it does not. Same terminal and settings.
> > I am using a terminal that has modifyOtherKeys set to 2.
> > I have made sure t_TI and t_TE are set to the above as described in the 
> > help.
> > I have also checked with some other programs that show the key pressed 
> as 
> > 'M-y'
> > 
> > Does a simple nmap like <A-y> k (or <M-y>) work for you in vim ?
> > The mapping does not complain or report any issue, it just does not work.
> > If I use nmap <Esc>y k it works.
> > I am sure many would say go away and just use <Esc>y or set <F22> = 
> "\ey" 
> > and nmap <F22> <A-y>.
> > Its all ok - I just thought vim would support the <A-y> or <M-y> mapping 
> as 
> > I've configured it.
> > Perhaps its some other setting that vim requires that I need to keep 
> > researching ?
>
> This sounds like you have "meta sends escape" enabled, which can cause
> various problems. So first thing is to disable that.
>
> Also see https://github.com/vim/vim/issues/5200
>
> -- 
> hundred-and-one symptoms of being an internet addict:
> 82. AT&T names you Customer of the Month for the third consecutive time.
>
> /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
> /// \\\
> \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
> \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
>

-- 
-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/ec905c44-6c69-44c4-8b27-e0d876d0c377n%40googlegroups.com.

Reply via email to