2

Why is Vim showing these strange characters?

enter image description here

I'm running Arch, and locale -a gives this:

C
en_US.utf8
POSIX
➜$>

I've also tried

:set fileencoding=utf-8

But, that didn't help either.

  • 1
    Does :set list! fix the problem? – Satō Katsura Jan 24 '17 at 16:01
  • yep...I found a mistake in my vimrc, which adds this: " so invisibles set list set listchars= "set listchars+=tab:𐄙\ set listchars+=trail:· set listchars+=extends:» set listchars+=precedes:« set listchars+=nbsp:⣿ This is causing the problem, but removing the +=tab causes all tabs to be replaced with a ^I – testname123 Jan 24 '17 at 16:09
  • 1
    You can keep listchars, it's quite useful occasionally. Just don't set list in your vimrc. Use :set list! to toggle it when you need it. – Satō Katsura Jan 24 '17 at 16:11
  • Thanks...I'll do that...I also changed the tabs to something a little less intrusive (two whitespaces). This is good enough for me and working with C files. – testname123 Jan 24 '17 at 16:32
0

Thanks to @"Sato Katsura", here is what I did:

The characters were caused by my overlooking something in my .vimrc. That character is called

" so invisibles
"set list
set listchars=
"set listchars+=tab:𐄙\ 
set listchars+=tab:\ \ 
set listchars+=trail:·
set listchars+=extends:»
set listchars+=precedes:«
set listchars+=nbsp:⣿

I commented out set list because I don't really need it all the time...I also changed the tab substitution to two whitespaces, since anything else was unbelievably annoying.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.