I'm trying to edit UTF-8 text files using vim (7.3) on windows (prompt/powershell).
My _vimrc file is pretty simple:
set encoding=latin-1
set fileencoding=utf-8
The problem is, when editing a file that already exists, it (aparently) works. But If I use vim to create a new file, it doesn't write the same contents.
Let's say, I open a file using vim myfile.txt
, that have this content:
discussão
If I :wq
it everything is ok.
Now, if instead I'm creating a new file, after saving and reopening I get:
discussão
If I edit it to look like the first and save it, I can edit the file any number of times without problems.