ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@mivlgu.murom.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] Редактор под Linux с Юникодом
Date: Fri Dec 14 19:38:11 2001
Message-ID: <20011214195058.7c638a02.vsu@mivlgu.murom.ru> (raw)
In-Reply-To: <20011214172416.0879de59.svetit@mail.ru>

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

On Fri, 14 Dec 2001 17:24:16 +0300
Kir <svetit@mail.ru> wrote:

> Помогите, плиз, сориентироваться.
> Какой-либо редактор, работающий под Х-ми, из дистра S2001 имеет возможность открывать и редактировать документы в KOI8 и Win, а сохранять в Юникоде, и наоборот?

vim (gvim) - если не испугаетесь :-)

Только нужен шрифт в кодировке iso10646-1; можно взять в Сизифе,
например, пакет xfonts-uni-vga.

В ~/.gvimrc написать:

let &termencoding=&encoding
set encoding=utf-8
let &fileencodings='ucs-bom,utf-8,'.&termencoding

set guifont=-bolkhov-vga9-medium-r-normal--16-160-75-75-c-90-iso10646-1

При использовании в качестве основной системной кодировки cp1251
нужно еще добавить в ~/.vimrc:

if v:ctype =~ 'CP1251'
  set encoding=8bit-cp1251
endif

После этого можно использовать команды:

:e ++enc=cp1251 file.win 
:w ++enc=utf-8 file.utf8
:w ++enc=iso-8859-5 file.iso

Замечание: новые файлы будут иметь по умолчанию кодировку utf-8,
при необходимости нужно переключить: например, :set fenc=koi8-r.
При чтении файла utf-8 и текущая системная кодировка
определяются автоматически, для других нужно указывать :e
++enc=...

К сожалению, в таком режиме проявляется ошибка в обработке
CTRL-F в режиме вставки при set cindent - происходит зависание.
Источник ошибки отловлен, отчет отправлен авторам вместе с
патчем, пообещали исправить.

-- 
Сергей Власов

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

  parent reply	other threads:[~2001-12-14 19:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-14 17:24 Kir
2001-12-14 17:27 ` Korshunov Ilya
2001-12-14 17:33   ` Kir
2001-12-14 17:51     ` [mdk-re] Re[2]: " Alexandre Prokoudine
2001-12-14 18:04       ` Kir
2001-12-14 19:20         ` [mdk-re] Re[2]: " Alexandre Prokoudine
2001-12-14 20:05         ` Re[2]: [mdk-re] òÅÄÁËÔÏÒ ÐÏÄ Linux Ó àÎÉËÏÄÏÍ Serge Skorokhodov
2001-12-14 19:38 ` Sergey Vlasov [this message]
2001-12-14 20:09 ` [mdk-re] Редактор под Linux с Юникодом Michael Shigorin
2001-12-14 23:04   ` [mdk-re] Re[2]: " Kir

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=20011214195058.7c638a02.vsu@mivlgu.murom.ru \
    --to=vsu@mivlgu.murom.ru \
    --cc=mandrake-russian@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