How to make VIM display french letters?
I have some files that I'd like to be able to edit in vim, unfortunately they have some french characters in the content with accents, and vim destroys them.
I get Quote:
Quote:
I tried doing in vim: Quote:
How could I solve this issue? Thank You |
Hi,
When in vim, what's the output of the following: Code:
:verbose set enc? tenc? Code:
:lang Eric |
See if this link helps setting up the locales in vim.
http://stackoverflow.com/questions/1...anguage-in-vim |
Quote:
Code:
encoding=utf-8 Code:
Current language: "en_US.UTF-8" Code:
:set termencoding=utf-8 Code:
:verbose set enc? tenc? Re-opening it, cleared the termencoding value back to blank. Quote:
I want to keep mine in english, but be able to display french characters. Thanks |
Hi,
Thanks for the feedback. And what's the output of Code:
locale Eric |
Quote:
Code:
LANG=en_US.UTF-8 |
Hi,
Very strange, I have almost the same settings and output except for the :lang in vim and I can open a document with French text without loosing any accented characters. All this using all en_US.UTF-8 with a Spanish keyboard. Can you run the file command on the file and post the output, to check what encoding the file is in? Code:
file <yourfilewithaccents> Just found another thing that might be useful. When you have the file with the French text open in vim type the following and post the output: Code:
:set fileencoding? Kind regards, Eric |
Quote:
Code:
ISO-8859 text, with no line terminators Code:
fileencoding=latin1 Thanks for pointing me to the right direction! Code:
vim ~/.vimrc Thanks again, |
Hi,
Nice to hear you've got it working. Thanks for marking the thread as solved. Kind regards, Eric |
All times are GMT -5. The time now is 02:00 PM. |