On 27/12/11 19:16, Дмитрий Франк wrote:
27 декабря 2011 г. 21:16 пользователь Ben Fritz <[email protected]
<mailto:[email protected]>> написал:
On Dec 21, 3:09 pm, Дмитрий Франк <[email protected]
<mailto:[email protected]>> wrote:
> > 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.
>
Yeah, that's not supposed to happen! When do you set your encoding? It
should be pretty much the first thing in your .vimrc for it to work
properly.
This is the first thing in my .vimrc, yes. And, btw, if &encoding ==
utf-8, persistent undo does not work. With cp1251 works nice.
--
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
The order of the commands setting 'encoding' and language, and setting
up the menus, isn't arbitrary. You may want to shuffle the following around:
- snippet to set UTF-8
http://vim.wikia.com/wiki/Working_with_Unicode
- ":language" command
see :help :lang
- setting up the menus
- This is done not only by the :menu command, but also implicitly by
any of the following:
- :filetype [plugin] [indent] on
- :syntax on
- :runtime vimrc_example.vim
Best rgards,
Tony.
--
"A fractal is by definition a set for which the Hausdorff Besicovitch
dimension strictly exceeds the topological dimension."
-- Mandelbrot, "The Fractal Geometry of Nature"
--
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