Hi,

Thanks you both for your tips.

> fencs=ucs-bom,utf-8,latin1

The problem with that is, as you (pansz) explained, is that this
defaults to utf8 for new files. In the past I sometimes ended up with
utf8 encoded files that caused some trouble when editing/processing
with
non-unicode aware programs/scripts.

Unfortunately, it isn't possible to set fencs to
fencs=ucs-bom,latin1,utf-8 since utf8 files will never be recognized
even though (in my case) the presence of a multi byte lead character
is
a safe indicator the file isn't in latin1.

> You can use an autocmd for that directory, but not a modeline.

Well, I can set enc from BufRead -- I previously tried to use
BufReadPre
which didn't work. Unfortunately, setting enc to utf8 has some side
effects, which is why I'd like to be able to manually set fenc when
reading a file -- regardless of the value of fencs. This isn't
possible
it seems.

Anyway, I get your message that I should consider moving to utf8.

Regards,
Tom


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to