On 11/06/11 22:27, lem torov wrote:
On Sat, Jun 11, 2011 at 11:56 PM, Ben Fritz <[email protected]
<mailto:[email protected]>> wrote:
On Jun 11, 10:01 am, lem torov <[email protected]
<mailto:[email protected]>> wrote:
> Any way to work on VIM under win7 with cyrilic letter suport
>
Yes, there most certainly is a way. You need your 'encoding' set to
something which supports it (probably utf-8 is best), you need you
'guifont' (in gvim) set to something that has glyphs for it, and you
need to read existing files in as the proper encoding.
> I have tried change all combinations off
> encoding fileencoding termencoding
>
I doubt that. Each of these options is a string so the possibilities
are pretty much endless. What SPECIFICALLY did you try?
> eventually gvim work but weirdly same times
> console version is not.
Quite possibly your console font does not have glyphs for the
characters you are interested in. I'm fairly certain the default
cmd.exe font is pretty limited.
> It worked once and then gone
> again doesnt work
>
What specifically did you try? Where did you set each of the options
(e.g. in your .vimrc, or manually after Vim was loaded, or in a plugin
file..?)
> defaul for windows utf-8 and console 437
The default for Windows is (at least for me) latin1, not utf-8. This
probably depends on your locale. console 437 I'm pretty sure doesn't
have any concept of cryllic letters.
Take a peek at http://vim.wikia.com/wiki/Working_with_Unicode for some
help setting up Vim for Unicode support.
--
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
I create by notepad text contain cyrilic letters and saved it in utf-8
format
then i have reached the point of proper displaying it in gvim but it
highly difficalt.
every time I have to dance near vim to undestand what codepage used to
create document.
i even reached point of proper displaying cyrilic even console version
vim but again i have to dance 10 min before i will start work with text.
echo Привет
Привет
so console works with cyrilic
first what i got that original font for gvim doesnt support cyrilic only
courier_new
I get use to use vim in linux and now i have shifted to Win(at work) and
dont wanna learn new editor.
I am just wondering why it so difficult with codepage. Scite work
smoothly on both OS, but VIM better with plugin and my habbits.
--
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
The wiki page mentioned in some earlier reply explains how to set up
gvim for international editing. As a 'guifont' setting, I recommend
Courier_New, which is not as elegant, maybe, as Lucida_Console, but at
least (unlike the Lucida_Console, whose bold Cyrillic glyphs are about
one pixel wider than the unbold ones, or so they were when I was on
Windows) all the Courier_New glyphs are exactly the same width. You may
also experiment with the ":set guifont=*" menu (without the quotes) --
IIRC you can paste any text (including Russian text) in the example
pane, to see if when it displays "Здравствуйте!" it puts you in the mood
to answer back "Как вы поживаете?".
If gvim doesn't recognize the 'fileencoding' of some editfile, you can
set it manually (see :help ++opt). For Russian on Windows, in a gvim
version started with 'encoding' set (by the vimrc) to UTF-8 and
'fileencodings' (plural) at something like
"ucs-bom,utf-8,default,latin1" (without the quotes, I would try
:e filename.ext
:e ++enc=koi8-r filename.ext
:e ++enc=Windows-1251 filename.ext
:e ++enc=utf-16le filename.ext
(the first of these takes care of UTF-8 and of any Unicode file with
BOM, the next two are encodings commonly used for Russian, and the last
one is the representation of Unicode preferred by Windows, though
usually Windows uses a BOM, so I would only try it after the others).
Best regards,
Tony.
--
Do not drink coffee in early a.m. It will keep you awake until noon.
--
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