Radovan Garabik wrote:
> > in my ~/.vimrc i use: > > " > > set encoding=utf-8 > > " Note that if you use a UTF-8 locale 'encoding' will be automatically set to utf-8 already. No need to add something in your ~/.vimrc file. > do also: > set fileencoding=utf-8 > so that you do not encounter those nasty CONVERSION ERRORs The value of 'fileencoding' is changed as soon as you open a file. It's used to remember the encoding of the file (can be different from the encoding used inside Vim). You can also change it after reading a file, so that ":w" writes it with a different encoding. You probably want to set 'fileencodings' to "utf-8" or make it empty. Then Vim won't check for a BOM or fall back to using latin1. You still get CONVERSION ERRORs when editing a file with an illegal byte sequence, and that's a good hint for the user. I think a discussion about whether receiving a latin1 file which is automatically converted to UTF-8 counts as being on a UTF-8-only planet or not isn't very useful. Point is that you do need the conversion now and then. -- hundred-and-one symptoms of being an internet addict: 251. You've never seen your closest friends who usually live WAY too far away. /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.moolenaar.net \\\ /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html /// -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/
