metwork-framework / mfextaddon_vim

opinionated vim editor (and configuration) for use in metwork framework env (with python3 or python2)
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Vim shows >4;m<ESC>[>4;m<ESC sequence while editing #63

Closed matthieumarrast closed 2 years ago

matthieumarrast commented 2 years ago

In metwork-mfext-2 with layer python3_vim@mfext activated, a strange sequence of characters(>4;m[>4;m<) is shown either at cursor place (after a couple of seconds after seizure), either on the last visible line of the file when opening (>4;m[>4;2m[>4;m[>4;2m)

image

image

Related link issues:

I'll will try to find a best solution and pushing it as a PR.

matthieumarrast commented 2 years ago

https://github.com/vim/vim/blob/63b9173693015b135aad8e3657bef5e7f776787e/runtime/doc/map.txt#L905

Xterm and a few other terminals can be put in a mode where keys with modifiers
are sent with a special escape code.  Vim recognizes these codes and can then
make a difference between CTRL-H and Backspace, even when Backspace sends the
character 8.  And many more special keys.

For xterm modifyOtherKeys is enabled in the builtin termcap entry.  If this is
not used you can enable modifyOtherKeys with these lines in your vimrc: >
      let &t_TI = "\<Esc>[>4;2m"
      let &t_TE = "\<Esc>[>4;m"
In case the modifyOtherKeys mode causes problems you can disable it: >
      let &t_TI = ""
      let &t_TE = ""
...
matthieumarrast commented 2 years ago

Solution: add below lines to /opt/metwork-mfext-2.0/opt/vim/config/vimrc

let &t_TI = ""
let &t_TE = ""