Vim shows garbage symbols

When I run vim with one of these plugins:

  • Tagbar
  • Session

I sometimes see garbage characters in the buffer when I open vim.

These symbols are:

;2R^[[>1;2802;0c 

By removing these two plugins, I no longer see these garbage symbols.

If I type dd , it does not even delete these characters. Wim says the buffer is empty.

Including this command at the end of my .vimrc is a workaround for this problem:

 autocmd VimEnter * redraw! 

In this case, these characters are immediately deleted.

How can I fix this problem?

+6
source share
2 answers

I switched to neovim and I did not see it anymore.

-1
source

Vim asks for a terminal for its version, what you see is the answer (cp :help v:termresponse ). It is displayed only in the terminal; that you cannot โ€œeditโ€ it and will appear after redrawing.

Why Vim is not getting it properly, I donโ€™t know. Switching the terminal program may be useful. You can also try to suppress the request via :set t_RV= in ~/.vimrc .

+5
source

All Articles