Weird character appear when opening file using Vim after installing vim-gnome

I am trying to learn Vim and using .vimrc from this link. Everything works fine but after I installed vim-gnome via sudo apt-get install vim-gnome to use xterm_clipboard, weird characters keep printing after I open Vim as in the image below.

img_error_vim

Everything is still fine if I use vim -u NONE file. I checked $TERM=xterm.

I found another question suggesting to delete set visualbell in .vimrc but it turns out that there is no such line in my .vimrc. I have searched google and found that I can add set t_TI = t_TE = to .vimrcbut it keeps printing the same weird characters but less as in the image below.

img_vim_error

Could anyone help me how to fix it?

9

1 Answer

I just found an answer here for those who might run into the same problem

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like