From: Genix <genix@list.ru>
To: community@altlinux.ru
Subject: Re: [Comm] vim и encoding
Date: Fri, 17 Dec 2004 10:35:34 +0300
Message-ID: <41C28C46.4020508@list.ru> (raw)
In-Reply-To: <20041217073029.GA6841@AKRASAVIN.localdomain>
Krasavin Andrey wrote:
> Есть страничка index.html в кодировке cp1251. Подскажите,
> пожалуйста, как мне внести в ней изменения в той же самой
> кодировке, если по умолчанию у меня koi8-r, а для редактирования я
> использую vim. Пробовал дать команду set ++enc=cp1251, но ничего
> не изменилось.
>
записать в .vimrc следующее:
$ cat .vimrc
set wildmenu
set wcm=<Tab>
menu Encoding.koi8-r :e ++enc=koi8-r<CR>
menu Encoding.windows-1251 :e ++enc=cp1251<CR>
menu Encoding.ibm-866 :e ++enc=ibm866<CR>
menu Encoding.utf-8 :e ++enc=utf-8 <CR>
map <F8> :emenu Encoding.<TAB>
во время редактирования файла нажать F8
--
У каждого в башке свои тараканы...
next prev parent reply other threads:[~2004-12-17 7:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-17 7:30 Krasavin Andrey
2004-12-17 7:35 ` Genix [this message]
2004-12-17 8:51 ` Krasavin Andrey
2004-12-17 8:04 ` Alexey I. Froloff
2004-12-17 19:09 ` [Comm] " Michael Shigorin
2004-12-17 11:21 ` [Comm] " Grigory Fateyev
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=41C28C46.4020508@list.ru \
--to=genix@list.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