ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm]  vi -> vim
@ 2011-08-19 10:16 Occisor
  2011-08-19 10:25 ` vx8400
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Occisor @ 2011-08-19 10:16 UTC (permalink / raw)
  To: ALT Linux Community general discussions

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

Подскажите, где прописано что редактор по умолчанию (в консоли) vi, чтоб 
заменить его на vim. Система P5.
$EDITOR ничего не выводит.

[-- Attachment #2: brutalfreak.vcf --]
[-- Type: text/x-vcard, Size: 261 bytes --]

begin:vcard
fn;quoted-printable:=D0=98=D0=BB=D1=8C=D1=8F
n;quoted-printable:;=D0=98=D0=BB=D1=8C=D1=8F
adr:;;;;28;;RF
email;internet:brutalfreak@gmail.com
note;quoted-printable:xmpp: occisor@jabber.root.cz=0D=0A=
	ICQ: 292441788
version:2.1
end:vcard


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

* Re: [Comm] vi -> vim
  2011-08-19 10:16 [Comm] vi -> vim Occisor
@ 2011-08-19 10:25 ` vx8400
  2011-08-19 11:14   ` Occisor
  2011-08-19 10:26 ` Alexei V. Mezin
  2011-08-19 11:07 ` Michael Shigorin
  2 siblings, 1 reply; 10+ messages in thread
From: vx8400 @ 2011-08-19 10:25 UTC (permalink / raw)
  To: ALT Linux Community general discussions

19 августа 2011 г. 14:16  Occisor:
> Подскажите, где прописано что редактор по умолчанию (в консоли) vi, чтоб
> заменить его на vim. Система P5.

export VISUAL=vim
?

wbr,
Oleg.

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

* Re: [Comm] vi -> vim
  2011-08-19 10:16 [Comm] vi -> vim Occisor
  2011-08-19 10:25 ` vx8400
@ 2011-08-19 10:26 ` Alexei V. Mezin
  2011-08-19 11:05   ` Occisor
  2011-08-19 11:07 ` Michael Shigorin
  2 siblings, 1 reply; 10+ messages in thread
From: Alexei V. Mezin @ 2011-08-19 10:26 UTC (permalink / raw)
  To: ALT Linux Community general discussions

19.08.2011 14:16, Occisor пишет:
> Подскажите, где прописано что редактор по умолчанию (в консоли) vi, чтоб
> заменить его на vim.

А разве у нас есть vi?

  vi --version | grep -i improved




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

* Re: [Comm] vi -> vim
  2011-08-19 10:26 ` Alexei V. Mezin
@ 2011-08-19 11:05   ` Occisor
  0 siblings, 0 replies; 10+ messages in thread
From: Occisor @ 2011-08-19 11:05 UTC (permalink / raw)
  To: ALT Linux Community general discussions

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

19.08.2011 20:26, Alexei V. Mezin пишет:
> 19.08.2011 14:16, Occisor пишет:
>> Подскажите, где прописано что редактор по умолчанию (в консоли) vi, чтоб
>> заменить его на vim.
>
> А разве у нас есть vi?
>
> vi --version | grep -i improved
>

Да, действительно, по команде vi запускается vim
$ vi
Error detected while processing /usr/share/vim/colors/slate.vim:
line   12:
E319: Sorry, the command is not available in this version: let 
colors_name = "slate"
Press ENTER or type command to continue

Но почему тогда не применяется цветовая схема? Если запустить vim, то 
применяется.

[-- Attachment #2: brutalfreak.vcf --]
[-- Type: text/x-vcard, Size: 251 bytes --]

begin:vcard
fn;quoted-printable:=D0=98=D0=BB=D1=8C=D1=8F
n;quoted-printable:;=D0=98=D0=BB=D1=8C=D1=8F
adr:;;;;28;;RF
email;internet:brutalfreak@gmail.com
note;quoted-printable:xmpp: occisor@jabber.root.cz=0D=0A=
	ICQ: 292441788
version:2.1
end:vcard


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

* Re: [Comm] vi -> vim
  2011-08-19 10:16 [Comm] vi -> vim Occisor
  2011-08-19 10:25 ` vx8400
  2011-08-19 10:26 ` Alexei V. Mezin
@ 2011-08-19 11:07 ` Michael Shigorin
  2 siblings, 0 replies; 10+ messages in thread
From: Michael Shigorin @ 2011-08-19 11:07 UTC (permalink / raw)
  To: ALT Linux Community general discussions

On Fri, Aug 19, 2011 at 08:16:17PM +1000, Occisor wrote:
> Подскажите, где прописано что редактор по умолчанию (в консоли)
> vi, чтоб заменить его на vim. Система P5.
> $EDITOR ничего не выводит.

Надо, чтоб выводил ;-)  vi -- это фолбэк.

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


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

* Re: [Comm] vi -> vim
  2011-08-19 10:25 ` vx8400
@ 2011-08-19 11:14   ` Occisor
  2011-08-20  9:05     ` Sergey
  0 siblings, 1 reply; 10+ messages in thread
From: Occisor @ 2011-08-19 11:14 UTC (permalink / raw)
  To: ALT Linux Community general discussions

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

19.08.2011 20:25, vx8400 пишет:
> 19 августа 2011 г. 14:16  Occisor:
>> Подскажите, где прописано что редактор по умолчанию (в консоли) vi, чтоб
>> заменить его на vim. Система P5.
>
> export VISUAL=vim
> ?

export EDITOR=vim
работает, но только в активной сессии, пока ее не закроешь.

[-- Attachment #2: brutalfreak.vcf --]
[-- Type: text/x-vcard, Size: 251 bytes --]

begin:vcard
fn;quoted-printable:=D0=98=D0=BB=D1=8C=D1=8F
n;quoted-printable:;=D0=98=D0=BB=D1=8C=D1=8F
adr:;;;;28;;RF
email;internet:brutalfreak@gmail.com
note;quoted-printable:xmpp: occisor@jabber.root.cz=0D=0A=
	ICQ: 292441788
version:2.1
end:vcard


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

* Re: [Comm] vi -> vim
  2011-08-19 11:14   ` Occisor
@ 2011-08-20  9:05     ` Sergey
  2011-08-20 10:01       ` Владимир Гусев
  0 siblings, 1 reply; 10+ messages in thread
From: Sergey @ 2011-08-20  9:05 UTC (permalink / raw)
  To: ALT Linux Community general discussions

On Friday 19 August 2011, Occisor wrote:

> export EDITOR=vim
> работает, но только в активной сессии, пока ее не закроешь.

~/.bashrc
~/.bash_profile

-- 
С уважением, Сергей
a_s_y@sama.ru


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

* Re: [Comm] vi -> vim
  2011-08-20  9:05     ` Sergey
@ 2011-08-20 10:01       ` Владимир Гусев
  2011-08-20 15:15         ` Yura Kalinichenko
  0 siblings, 1 reply; 10+ messages in thread
From: Владимир Гусев @ 2011-08-20 10:01 UTC (permalink / raw)
  To: ALT Linux Community general discussions

On Sat, 20 Aug 2011 13:05:46 +0400, Sergey wrote:

> On Friday 19 August 2011, Occisor wrote:
>
>> export EDITOR=vim
>> работает, но только в активной сессии, пока ее не закроешь.
>
> ~/.bashrc
> ~/.bash_profile

А куда правильнее?


-- 
С уважением,
Владимир Гусев


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

* Re: [Comm] vi -> vim
  2011-08-20 10:01       ` Владимир Гусев
@ 2011-08-20 15:15         ` Yura Kalinichenko
  2011-08-20 16:12           ` Владимир Гусев
  0 siblings, 1 reply; 10+ messages in thread
From: Yura Kalinichenko @ 2011-08-20 15:15 UTC (permalink / raw)
  To: ALT Linux Community general discussions

Владимир Гусев пишет:
> On Sat, 20 Aug 2011 13:05:46 +0400, Sergey wrote:
>
>> On Friday 19 August 2011, Occisor wrote:
>>
>>> export EDITOR=vim
>>> работает, но только в активной сессии, пока ее не закроешь.
>>
>> ~/.bashrc
>> ~/.bash_profile
>
> А куда правильнее?
>
>
Чтобы для всех пользователей

echo "export EDITOR=vim" > /etc/profile.d/editor.sh
chmod 0755 /etc/profile.d/editor.sh

-- 
SY, 
   Yura Kalinichenko



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

* Re: [Comm] vi -> vim
  2011-08-20 15:15         ` Yura Kalinichenko
@ 2011-08-20 16:12           ` Владимир Гусев
  0 siblings, 0 replies; 10+ messages in thread
From: Владимир Гусев @ 2011-08-20 16:12 UTC (permalink / raw)
  To: ALT Linux Community general discussions

On Sat, 20 Aug 2011 19:15:41 +0400, Yura Kalinichenko wrote:

> Владимир Гусев пишет:
>> On Sat, 20 Aug 2011 13:05:46 +0400, Sergey wrote:
>>
>>> On Friday 19 August 2011, Occisor wrote:
>>>
>>>> export EDITOR=vim
>>>> работает, но только в активной сессии, пока ее не закроешь.
>>>
>>> ~/.bashrc
>>> ~/.bash_profile
>>
>> А куда правильнее?
>>
>>
> Чтобы для всех пользователей
>
> echo "export EDITOR=vim" > /etc/profile.d/editor.sh
> chmod 0755 /etc/profile.d/editor.sh
>

Меня как раз интересует вопрос про эти 2 файла - в какой из них правильнее  
писать.

-- 
С уважением,
Владимир Гусев


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

end of thread, other threads:[~2011-08-20 16:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-19 10:16 [Comm] vi -> vim Occisor
2011-08-19 10:25 ` vx8400
2011-08-19 11:14   ` Occisor
2011-08-20  9:05     ` Sergey
2011-08-20 10:01       ` Владимир Гусев
2011-08-20 15:15         ` Yura Kalinichenko
2011-08-20 16:12           ` Владимир Гусев
2011-08-19 10:26 ` Alexei V. Mezin
2011-08-19 11:05   ` Occisor
2011-08-19 11:07 ` Michael Shigorin

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