Reply to message «Re: no echo output in command line», 
sent 17:07:01 09 November 2010, Tuesday
by rameo:

> Why can't I keep the utf8 settings of a file?
You can save encoding settings with a script, but before writing it try moving 
`latin1' before `default' in `fileencodings' option:
    set fileencodings=ucs-bom,utf-8,latin1,default

> I don't have anything in my vimrc written about encoding.

> set fenc=utf8
As I already mentioned, this option is set by `e ++enc' and altering it has no 
effect on already loaded file. According to the help, changing it will take 
effect when you save it.
> set enc=utf
Can't find `utf' in ``:h encoding-names''.
> e!  ++fenc=utf8
It reloads the file with utf-8 encoding. It is not supposed to save information 
about file encoding somewhere.
> setlocal enc=utf8
1. Do not change `enc'.
2. `enc' is a global option, so `setlocal', `setglobal' and `set' here have 
exactly the same effect.

> Whatever I do, when I save the file and reopen the file again the
> encoding is latin1 again.
Does this file contain any invalid characters? Use `gg08g8' in normal mode to 
find it after you opened file with `e ++enc=utf-8'. If they are found, remove 
them.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to