1

When trying to input danish characters æøå into vim, I suddenly get "æ ø å " and then the questionmark blocks on reopening. The same goes for files saved in other editors and reopened in vim. I have set my encoding to utf-8 in my vimrc, and experience no issues in other editors. Are there other encoding options I should be aware of than

:set encoding

?

2
  • What fileencoding is being set when you open the file? Apr 28, 2011 at 16:13
  • I have the same problem.
    – Reman
    Jul 4, 2014 at 8:03

2 Answers 2

1

You may have to enable detection for UTF-8 by setting fileencodings:

set fileencodings=ucs-bom,utf-8,cp1257,latin1

(note: fileencoding is current, fileencodings is list of encodings to try.)

1
  • I have the same problem as Santeh. Unfortunately your solution didn't work for me.
    – Reman
    Jul 4, 2014 at 8:04
1

I just had the same problem, and found the cause of it to be that I had installed the auto-pairs plugin (plugin/auto-pairs.vim). Once I removed that, problem disappeard. Guess auto-pairs doesn't like æøå.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .