ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Alexey I. Froloff" <raorn@immo.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Vi и кодировки
Date: Tue, 30 Dec 2003 08:54:14 +0300
Message-ID: <20031230055414.GA4681@inferno.immo> (raw)
In-Reply-To: <200312300824.04227.therion@pochta.ru>

[-- Attachment #1: Type: text/plain, Size: 1512 bytes --]

* therion <therion@pochta.ru> [031230 06:28]:
>  > Какого рода тарабарщина?  В какой кодировке записаны файлы?
> Файлы формата html кодировка cp1251 выводить на экран пытался как koi8-r
Странно...  Очень странно...

> > По умолчанию выводится как есть выбраным шрифтом.  Что говорят
> > :set encoding?
> =koi8-r
Должно быть "8bit-cp1251" (но с настройками по умолчанию - latin1).
Вы уверены, что ничего к виму не прикручивали?

Попробуйте запустить gvim -u NONE -U NONE file.html и опять
посмотреть чему равны encoding и guifont...

> > :set termencoding?
> = (не определен короче)

> > :help 'guifont'
> Вот этот параметр как раз помогает: если делаешь set 
> guifont=-*-fixed-medium-r-normal--*-130-*-*-c-*-microsoft-cp1251

:set guifont?

сразу после запуска что показывает?

> Было бы совсем неплохо запомнить сделанные настройки, чтобы не набивать это 
> дело каждый раз. С vi знаком пока слабо, даже не знаю как повторить команду 
> из истории, не подскажете?
:<Up>/<Down>

> Файл .vimrc в каталоге пользователя отсутствует, при ручном создании vi 
> настройки из него не берет.
vi или vim?

Советую посмотреть на /usr/share/vim/(g)vimrc_example.vim

Если "по быстрому", то вот так:

~/.vimrc:
set nocompatible
set encoding=8bit-cp1251

~/.gvimrc:
set guifont=-*-fixed-medium-r-normal--*-130-*-*-c-*-microsoft-cp1251

-- 
Regards, Sir Raorn.
-------------------
Многие замечательные пакеты или features остаются незамеченными только
потому, что про них в сети  нигде ничего не написано.
		-- aen in devel@

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2003-12-30  5:54 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 [this message]
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
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=20031230055414.GA4681@inferno.immo \
    --to=raorn@immo.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