* Kurt Roeckx [Sat, 26 Aug 2006 11:18:38 +0200]:

> What I did was tell vim that it should internally store things in utf-8
> by setting "encoding=utf-8".  This also has as effect that it changes
> the default for fileencodings to "ucs-bom,utf-8,latin1".  The value of
> encoding is also based on the terminal settings, but has nothing to do
> with either the fileencoding (which is based on fileencodings) or the
> termencoding.  Note that I've also filed a bug against vim to change
> that behaviour a little.

Ah, okay.

> This seems to be working, but I think I'll end up with problems replying
> to latin1 mails for which mutt stores the file in latin1, and then I'll
> end up sending a latin1 mail with headers claiming it to be utf-8.

True. Note that even with $edit_charset, you'd have the same problem.
Maybe you can resolve it with this in ~/.vimrc (and keeping your macro):

  au FileType mail setlocal fenc=utf-8

(But for the same price, you could as well drop the macro, and set fenc
to latin1 in the autocommand above. How often do you use non-Latin1
characters in mail? :-P)

Good luck with your setup, in any case.

Cheers,

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to