From: Alexej Kryukov <akrioukov@mail.ru> To: community@altlinux.ru Subject: Re: [Comm] Vi и кодировки Date: Tue, 30 Dec 2003 13:11:47 +0300 Message-ID: <200312301307.02523.akrioukov@newmail.ru> (raw) In-Reply-To: <200312300833.36549.therion@pochta.ru> On Tuesday 30 December 2003 06:33, therion wrote: > > > > Поэтому у меня установки стоят такие: > > > > set encoding=utf-8 > > Пробовал, после этого файл становится в принципе не читаемым.... > может все-же это кроме всего прочего определяется еще и кодировкой > системы? Ни в малейшей степени. Но если Вы забыли поставить кодировку guifont iso10646-1 --- тогда конечно... > > set fileencodings=ucs-bom,8bit-cp1251,utf-8 > > Помогла такая строка: > guifont=-*-fixed-medium-r-normal--*-130-*-*-c-*-microsoft-cp1251 Еще раз: сделайте вместо этого iso10646-1. Всё равно Вам рано или поздно переходить на сборку с gtk2 (наверняка в следующей версии ALT будет именно она), а там для guifont настраивается только имя и размер. > Пока кодировка системы была cp1251 видимо gvim в ней и выводил, после > перехода он стал в koi8-r, а файл в cp1251 так и остался :)). Откуда > он параметры системы читает, - вот в чем вопрос? Ниоткуда не читает. Берет то, что написано у него в конфигах. > > Вот фрагмент моего .vimrc с установкой шрифта (на все случаи > > жизни): > > И почему напрочь отсутствует этот файл настроек в каталоге > пользователя? Запустите (g)vim -V, чтобы посмотреть, какие файлы загружаются. Возможно, надо просто истребить какие-нибудь конфиги из /etc. > Есть, правда такой в каталоге root но и действует он соответственно > для рута. При ручном создании файла настройки из него просто не > беруться. Вероятно надо сохранить настройки с помощью команды...и ^^ > в последствии vim будет брать их оттуда. В документации пока ^^^ > ничего подобного не раскопал. А нет ничего подобного. Файл создается именно руками. Если настройки из него не берутся, это просто значит, что они перекрываются чем-то. В данном случае как раз помогает опция -V. > > " GUI font > > if has("win32") > > set guifont=lucida_sans_unicode:h12:::cDEFAULT > > elseif has("gui_kde") > > set guifont=Fixed\[Misc]/18/-1/5/50/0/0/0/1/0 > > elseif has('gui_gtk2') > > set guifont=Fixed\ 18 > > elseif has('gui') > > set > > guifont=-misc-fixed-medium-r-normal-*-*-200-*-*-c-*-iso10646-1 > > endif > > > > Этого должно быть достаточно.
next prev parent reply other threads:[~2003-12-30 10:11 UTC|newest] Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-12-29 3:34 therion 2003-12-29 5:14 ` Dmitry Azhichakov 2003-12-29 7:09 ` therion 2003-12-29 7:50 ` Alexej Kryukov 2003-12-30 3:14 ` therion 2003-12-29 5:35 ` Alexey I. Froloff 2003-12-29 7:04 ` therion 2003-12-29 8:36 ` Alexey I. Froloff 2003-12-29 9:45 ` therion 2003-12-30 3:24 ` therion 2003-12-30 5:54 ` Alexey I. Froloff 2003-12-30 5:58 ` Alexey I. Froloff 2003-12-30 10:11 ` Alexej Kryukov 2003-12-30 6:05 ` therion 2003-12-31 4:29 ` Guzaev Pavel Urevich 2003-12-31 6:41 ` Andrey Novoselov 2003-12-29 7:45 ` Alexej Kryukov 2003-12-29 8:30 ` therion 2003-12-29 8:57 ` Alexej Kryukov 2003-12-29 9:55 ` therion 2003-12-29 13:57 ` Alexej Kryukov 2003-12-31 9:36 ` Andrew Borodin 2003-12-31 11:12 ` Sergey Degtyaryov 2004-01-05 3:54 ` Guzaev Pavel 2004-01-05 10:25 ` [Comm] " Michael Shigorin 2004-01-06 0:02 ` Vitaly Lipatov 2003-12-30 3:33 ` [Comm] " therion 2003-12-30 10:11 ` Alexej Kryukov [this message] 2004-01-09 5:17 ` Guzaev Pavel 2003-12-30 6:05 ` therion 2003-12-31 4:30 ` Guzaev Pavel Urevich
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=200312301307.02523.akrioukov@newmail.ru \ --to=akrioukov@mail.ru \ --cc=community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git