Hi!
I work with vim and latex to write files in different languages (French, German, English). That's why my file are encoded in latin1. But vim has UTF-8 as default encoding which makes troubles when I create a new file (with old files vim detects automatically the right encoding).
I first tried to change the vim configuration in vimrc:
But then vim wouldn't write any accent correctly anymore (things like "é" or "è"...). So I switched back to the default configuration. Then I converted my file in latin1:
Quote:
iconv -cs -f UTF-8 -t ISO-8859-1 file > newfile
|
It works fine now but I'm not satisfied with the solution because I don't want to have to convert each new file I create!
How can I do ? Can I have vim in UTF-8 and still "keep" the same keyboard?