ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Q: Vim and UTF-8 autoconvert
@ 2003-04-01  0:03 Anton V. Denisov
  2003-04-01  5:49 ` Alexey I. Froloff
  2003-04-01 10:58 ` Sergey Vlasov
  0 siblings, 2 replies; 5+ messages in thread
From: Anton V. Denisov @ 2003-04-01  0:03 UTC (permalink / raw)
  To: sisyphus

Приветствую всех.

Пытаюсь тут запустить эмулятор терминала в ru_RU.UTF-8 локали и в нём
использовать vim-enhanced. И вылезла одна неприятная особенность в
vim-enhanced-6.1.280-alt15:
запускаю 'LANG=ru_RU.UTF-8 xterm -u8 -fn
-misc-fixed-medium-r-normal-*-*-140-*-*-*-*-iso10646-1'
в нём открываю на редактирование в vim-enhanced любой файл в кодировке
koi8-r, при этом он его автоматически перекодирует. Однако русские символы
при этом нормально не отображаются, хотя если перекодировать этот файл при
помощи 'iconv -f koi8-r -t utf-8', то потом при редактировании русский
отображается нормально. Что подкрутить в Vim'е, чтобы он нормально в UTF-8
сам перекодировал?

С уважением, Антон В. Денисов.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [sisyphus] Q: Vim and UTF-8 autoconvert
  2003-04-01  0:03 [sisyphus] Q: Vim and UTF-8 autoconvert Anton V. Denisov
@ 2003-04-01  5:49 ` Alexey I. Froloff
  2003-04-01 16:57   ` [sisyphus] " Michael Shigorin
  2003-04-01 10:58 ` Sergey Vlasov
  1 sibling, 1 reply; 5+ messages in thread
From: Alexey I. Froloff @ 2003-04-01  5:49 UTC (permalink / raw)
  To: sisyphus

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

* Anton V. Denisov <fire@kgpu.kamchatka.ru> [030401 02:57]:
> при этом нормально не отображаются, хотя если перекодировать
> этот файл при помощи 'iconv -f koi8-r -t utf-8', то потом при
> редактировании русский отображается нормально. Что подкрутить в
> Vim'е, чтобы он нормально в UTF-8 сам перекодировал?
Ничего крутить не надо. Неизвестно в какой кодировке открываемый
файл, так что любой искуственный интеллект в данном случае надо
искоренять.

-- 
Regards, Alexey I. Froloff
AIF5-RIPN, AIF5-RIPE
------------------------------------------
  Inform-Mobil, Ltd. System Adminitrator
       http://www.inform-mobil.ru/
Tel: +7(095)504-4709, Fax: +7(095)513-1006

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [sisyphus] Re: Q: Vim and UTF-8 autoconvert
  2003-04-01  0:03 [sisyphus] Q: Vim and UTF-8 autoconvert Anton V. Denisov
  2003-04-01  5:49 ` Alexey I. Froloff
@ 2003-04-01 10:58 ` Sergey Vlasov
  2003-04-01 11:06   ` Alexey I. Froloff
  1 sibling, 1 reply; 5+ messages in thread
From: Sergey Vlasov @ 2003-04-01 10:58 UTC (permalink / raw)
  To: sisyphus

On Tue, 1 Apr 2003 12:03:31 +1200
"Anton V. Denisov" <fire@kgpu.kamchatka.ru> wrote:

> Пытаюсь тут запустить эмулятор терминала в ru_RU.UTF-8 локали и в нём
> использовать vim-enhanced. И вылезла одна неприятная особенность в
> vim-enhanced-6.1.280-alt15:
> запускаю 'LANG=ru_RU.UTF-8 xterm -u8 -fn
> -misc-fixed-medium-r-normal-*-*-140-*-*-*-*-iso10646-1'
> в нём открываю на редактирование в vim-enhanced любой файл в кодировке
> koi8-r, при этом он его автоматически перекодирует. Однако русские символы
> при этом нормально не отображаются, хотя если перекодировать этот файл при
> помощи 'iconv -f koi8-r -t utf-8', то потом при редактировании русский
> отображается нормально. Что подкрутить в Vim'е, чтобы он нормально в UTF-8
> сам перекодировал?

:set fileencodings=......


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [sisyphus] Re: Q: Vim and UTF-8 autoconvert
  2003-04-01 10:58 ` Sergey Vlasov
@ 2003-04-01 11:06   ` Alexey I. Froloff
  0 siblings, 0 replies; 5+ messages in thread
From: Alexey I. Froloff @ 2003-04-01 11:06 UTC (permalink / raw)
  To: sisyphus

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

* Sergey Vlasov <vsu@altlinux.ru> [030401 15:01]:
> > отображается нормально. Что подкрутить в Vim'е, чтобы он нормально в UTF-8
> > сам перекодировал?
> :set fileencodings=......
Точно. И :help ++enc

-- 
Regards, Alexey I. Froloff
AIF5-RIPN, AIF5-RIPE
------------------------------------------
  Inform-Mobil, Ltd. System Adminitrator
       http://www.inform-mobil.ru/
Tel: +7(095)504-4709, Fax: +7(095)513-1006

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [sisyphus] Re: Q: Vim and UTF-8 autoconvert
  2003-04-01  5:49 ` Alexey I. Froloff
@ 2003-04-01 16:57   ` Michael Shigorin
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Shigorin @ 2003-04-01 16:57 UTC (permalink / raw)
  To: sisyphus

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

On Tue, Apr 01, 2003 at 09:49:56AM +0400, Alexey I. Froloff wrote:
> > при этом нормально не отображаются, хотя если перекодировать
> > этот файл при помощи 'iconv -f koi8-r -t utf-8', то потом при
> > редактировании русский отображается нормально. Что подкрутить
> > в Vim'е, чтобы он нормально в UTF-8 сам перекодировал?
> Ничего крутить не надо. Неизвестно в какой кодировке
> открываемый файл, так что любой искуственный интеллект в данном
> случае надо искоренять.

Ну почему, сделать хук на какую enca было бы занятно.

У меня когда-то default filter в mc viewer включал xconv.

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-04-01 16:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-01  0:03 [sisyphus] Q: Vim and UTF-8 autoconvert Anton V. Denisov
2003-04-01  5:49 ` Alexey I. Froloff
2003-04-01 16:57   ` [sisyphus] " Michael Shigorin
2003-04-01 10:58 ` Sergey Vlasov
2003-04-01 11:06   ` Alexey I. Froloff

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git