First let me show a screenshot below.
In the modeline, a strange sequence of characters(
>4;m<ESC>[>4;m<ESC
) is shown. And not only in the modeline, I have seen such similar sentence in the command line when :wq
and in the buffer when I tried to update plugins using :PlugInstall
, too.
It's not a buggy problem, but it looks annoying. At the first, I thought it was some mysterious ANSI escape sequences. But when I searched more information about that, I happened to find that it seems the code for t_TE(^[[>4;m)
and t_TI(^[[>4;2m)
. Try :set termcap
and you will find them. However, only vim 8.2(it's the version I use) supports these code which is not true for vim 7.4(the default vim installed by ubuntu 16.04).
There're few information about t_TE
and t_TI
. But to be honest, I'm not curious what they are and how they work. I just want to suspend the display about them. I guess, since these codes are added by new vim, it's probably the same codes are not compatible with gnome-terminal so that it happens. But I dunno and I have very limited knowledge about termcap or terminfo anyway.
Actually I'm new to vim. It really diverts my attention when I catch a glimpes of these strange codes. I appreciate your help.
Update
Thanks for all comments and answers. For completeness, I update more information about where vim works on and terminal related info of mine.
- My OS is Ubuntu 16.04.7LTS
- I'm using terminator 1.91, but I also tried on GNOME Terminal 3.20.2 and the same problem happens
- My
$TERM
isxterm-256color
Maybe I should also post what my $termcap
is but it would be like a spam. But anyway, I don't remember I manually set all term related environment variables, so I believe they are what they are with default, unchanged values.
$TERM
variable set to? (I'm guessingTERM=xterm
but also that you're not on "xterm" but on something else...) Please edit the question to include that information.