I\'m using :set fileencoding=utf-8 and the file is saved correctly, but the next time I open it, I get garbled characters and :set fileencoding? sa
I read many thread about VIM encoding. I find that the most important trick is: Before open the file ,you should open VIM first, then use the command: edit ++enc= filename.ext It can handle most questions about encoding and fileencoding.
the key points include:
Because I am not an English mother tongue user, I think my way is able to be validate.