ALMA 10.2 Strange vim ANSI issue

This might be addressed before.

Installed alma10.2 and sshed from a alma9 machine

Installed vim

Started editing a file. Sw this “strange“ symbols in the upper left window e[?4m

Tried to undersand what happened and tried to implement a fix.

cat /etc/vimrc.local

" Safely clear xterm modifyOtherKeys and version query escape sequences
" Using silent! ensures no crashes on vim-minimal builds
silent! set t_RV=
silent! set t_RK=
silent! set t_RS=
silent! set t_RE=

Seems to work, the only issue i my command line prompt after editing using vim
[root@almalinux10-basic ~]# vim /etc/vimrc.local
e[>4;m[root@almalinux10-basic ~]#
[root@almalinux10-basic ~]#

Anyone got a better solution?

Regards
Leif

Sounds like Funny characters happen on gnome-terminal/mate-terminal starting from v9.0.0980 · Issue #11728 · vim/vim · GitHub

Try adding: (in .vimrc)

set keyprotocol=
let &term=&term

THANK YOU (sorry for the capslock)

using

set keyprotocol=
let &term=&term

in /etc/vimrc.local fixed the issue in a multi user environment,.

/leif