21 декабря 2011 г. 22:55 пользователь Ben Fritz
<[email protected]>написал:

>
>
> On Dec 19, 7:40 am, Дмитрий Франк <[email protected]> wrote:
> > i use Windows, and i have to keep Vim's encoding cp1251. (standard
> encoding
> > for russian Windows)
> >
>
> How does that work for you in other areas? I've seen many warnings
> that if you're going to be using multibyte encodings you should use
> utf-8 for 'encoding'. You seem to be editing utf-8 files with an
> 'encoding' of cp1251. I'm not saying it won't work; I really don't see
> why it wouldn't as long as you don't edit any utf-8 files containing
> characters not representable in cp1251; but it's a bit surprising to
>  read.


>
> Why is it that you cannot set Vim's encoding to utf-8? Standard
> encoding for Vim on my system is latin1 but setting it in Vim to utf-8
> doesn't cause any ill effects.


I have some other problems with it before, but i have to use standard
Windows &encoding 'cp1251', because of if i set my &encoding to 'utf-8',
then all messages from Vim becomes garbage. And all shell messages too, of
course. Here's an screenshot with example, if i have &encoding == 'utf-8' :
http://goo.gl/h6sk2

There's same other problems, i can't remember now. But if i found some
workaround with garbage in messages with &encoding == 'utf-8', i'll be glad.


>
>
> --
> You received this message from the "vim_dev" 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
>

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui