On 22.05.11 11:55, Ben Fritz wrote:
> On May 22, 6:00 am, Christian Brabandt <[email protected]> wrote:
> >  or you can force Vim to save it in utf-8
> > encoding, by issuing :w ++enc=utf8 filename.
> 
> This is true, but you can also do a
> 
> :setlocal fileencoding=utf-8

Thank you both! I've also been irritated by occasional write failure due
to conversion error, after pasting text to vim. A quick overwrite of the
offending characters in vim has always cured the problem. Yesterday it
was a weird minus sign. I see now that the file is latin1.

Presumably the old and new encodings sync after setting fileencoding=utf-8,
so I wouldn't still have two kinds of '-' ? (I have no idea how many
different minus signs and hyphens are included amongst utf-8 multibyte
characters.)

Erik

-- 
Forum moderator: Did you take the [End of the world on 21.05.11] doomsday 
prediction seriously?
Contributor:     Bugger, now I have to go to work tomorrow.
   - Seen on ABC website on 22.05.11

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to