Vim encoding issue with danish characters æøå

0

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

?

Santeh

Posted 2011-04-28T14:17:48.423

Reputation: 1

I have the same problem. – Reman – 2014-07-04T08:03:51.733

What fileencoding is being set when you open the file? – user1686 – 2011-04-28T16:13:27.437

Answers

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.)

user1686

Posted 2011-04-28T14:17:48.423

Reputation: 283 655

I have the same problem as Santeh. Unfortunately your solution didn't work for me. – Reman – 2014-07-04T08:04:24.350

0

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 æøå.

janfrode

Posted 2011-04-28T14:17:48.423

Reputation: 1