* [Comm] VIM: how can I edit files in different character sets?
@ 2006-07-22 15:34 Минц Михаил Михайлович
2006-07-22 15:46 ` Damir Shayhutdinov
0 siblings, 1 reply; 4+ messages in thread
From: Минц Михаил Михайлович @ 2006-07-22 15:34 UTC (permalink / raw)
To: ALT Linux Community
Всем привет!
Нет ли какого-нибудь способа загрузить в "VIM" файл в кодировке,
отличной от установленной по умолчанию, или сохранить открытый
файл в кодировке, отличной от установленной по умолчанию? Сейчас
в таких случаях либо использую "KEdit", либо меняю кодировку в
настройках "Konsole". Но что-то в памяти вертится, что есть
обычные консольные утилиты то ли для того, чтобы временно менять
локаль для запускаемой в данный момент программы, то ли для
того, чтобы перекодировать файлы из одной кодировки в другую.
Пробовал вводить "apropos locale", "apropos charset" и "apropos
iocharset", но ничего не нашёл.
Спасибо
Михаил
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] VIM: how can I edit files in different character sets?
2006-07-22 15:34 [Comm] VIM: how can I edit files in different character sets? Минц Михаил Михайлович
@ 2006-07-22 15:46 ` Damir Shayhutdinov
2006-07-22 15:53 ` Grigory Fateyev
0 siblings, 1 reply; 4+ messages in thread
From: Damir Shayhutdinov @ 2006-07-22 15:46 UTC (permalink / raw)
To: ALT Linux Community
> Нет ли какого-нибудь способа загрузить в "VIM" файл в кодировке,
> отличной от установленной по умолчанию
LC_ALL=ru_RU.CP1251 vim
> Но что-то в памяти вертится, что есть
> обычные консольные утилиты то ли для того, чтобы временно менять
> локаль для запускаемой в данный момент программы,
Угу, программа называется bash :)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] VIM: how can I edit files in different character sets?
2006-07-22 15:46 ` Damir Shayhutdinov
@ 2006-07-22 15:53 ` Grigory Fateyev
2006-07-22 16:12 ` Sergey Vlasov
0 siblings, 1 reply; 4+ messages in thread
From: Grigory Fateyev @ 2006-07-22 15:53 UTC (permalink / raw)
To: community
Hello Damir Shayhutdinov!
On Sat, 22 Jul 2006 19:46:42 +0400 you wrote:
> > Нет ли какого-нибудь способа загрузить в "VIM" файл в кодировке,
> > отличной от установленной по умолчанию
> LC_ALL=ru_RU.CP1251 vim
>
> > Но что-то в памяти вертится, что есть
> > обычные консольные утилиты то ли для того, чтобы временно менять
> > локаль для запускаемой в данный момент программы,
>
> Угу, программа называется bash :)
И зачем такой изврат?
из .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 и выбираем нужную кодировку.
--
Всего наилучшего!
greg [at] anastasia [dot] ru Григорий.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-07-22 16:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-22 15:34 [Comm] VIM: how can I edit files in different character sets? Минц Михаил Михайлович
2006-07-22 15:46 ` Damir Shayhutdinov
2006-07-22 15:53 ` Grigory Fateyev
2006-07-22 16:12 ` Sergey Vlasov
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