Thursday, November 7, 2019

Re: CTRL-P broken in version 8.1.2267

Marius Gedminas wrote:

> On Wed, Nov 06, 2019 at 10:58:13PM -0800, WU RUXU wrote:
> > 1. Debian Linux
> > 2. Console mode
> > 3. xterm-250
> > 4. vim in INSERT mode,  after user press CTRL-P , should be active keyword
> > completion.
> >
> > When I vim 8.0, this feature is work very well, but vim 8.1.2267, I found that
> > this feature is broken
> >
> > In INSERT mode, after I press CTRL-P , vim cann't active keyword completion
>
> Does this affect only Ctrl-P or every Ctrl-letter key? You can test by
> pressing Ctrl-V Ctrl-A and you should see ^A inserted.
>
> This might be related to xterm's modifyOtherKeys support added in recent
> Vim versions.
>
> (I'm not entirely sure how modifyOtherKeys work as I don't use xterm
> myself. Does one have to enable it via ~/.Xresources or does vim detect
> an xterm and enable it automatically via magic OSI sequences?)

Vim uses t_TI and t_TE to enable and disable modifyOtherKeys.
They are set from the builtin xterm termcap.
Most xterm versions support it, very old ones should ignore the codes.
When the terminal is not actually an xterm (screen, tmux, etc.) it
should ignore the codes, but we can't be sure about that.

--
I wonder how much deeper the ocean would be without sponges.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ 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 vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/201911071518.xA7FIU8W024765%40masaka.moolenaar.net.

No comments: