I see two possible reasons to this error.
Possibility 1: your Vim does not support multi-byte encodings such as
UTF-8. In that case, the output of ":version" will include -multi_byte
and the answer to ":echo has('multi_byte')" (with the single quotes
but without the double ones) will be 0. If this is the case, the only
solution is to use a more powerful Vim.
Possibility 2: even if Vim was built with +multi_byte, it might not
realize that your vimrc is in UTF-8. In that case, you should add, at
the very top of your vimrc (and in any case before the first line
containing a character with a Unicode codepoint higher than U+007F)
the line
scriptencoding utf-8
See :help :scriptencoding
You might also want to make sure that Vim uses UTF-8 internally at
runtime, and not some 'encoding' incompatible with the characters
you're trying to use.
See https://vim.wikia.com/wiki/Working_with_Unicode
Best regards,
Tony.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment