FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor


 
 
LinkBack Thread Tools
 
Old 05-08-2012, 03:31 PM
"G. Schlisio"
 
Default view command

hi all,
i stumbled over view being a link to ex, and not to vim, as i am used to
with several other distros (opensuse, debian). is there any particular
reason for that behaviour?

thanks
georg
 
Old 05-08-2012, 04:27 PM
Tiago Sousa
 
Default view command

Hey.
I don't have that behavior here but i guess if you set the environment
EDITOR variable to vim it should work.

On Tue, May 8, 2012 at 4:31 PM, G. Schlisio <g.schlisio@gmx.de> wrote:

> hi all,
> i stumbled over view being a link to ex, and not to vim, as i am used to
> with several other distros (opensuse, debian). is there any particular
> reason for that behaviour?
> thanks
> georg
>
 
Old 05-08-2012, 05:06 PM
Guillaume Alaux
 
Default view command

On 8 May 2012 18:27, Tiago Sousa <tsousahs@gmail.com> wrote:
> Hey.
> I don't have that behavior here but i guess if you set the environment
> EDITOR variable to vim it should work.
>
> On Tue, May 8, 2012 at 4:31 PM, G. Schlisio <g.schlisio@gmx.de> wrote:
>
>> hi all,
>> i stumbled over view being a link to ex, and not to vim, as i am used to
>> with several other distros (opensuse, debian). is there any particular
>> reason for that behaviour?
>> thanks
>> georg
>>

Looking at the vi PKGBUILD [0] (as 'view' belongs to package 'vi') we
don't make any change to 'view'. This mean the way it is in Arch seems
to be upstream (not saying this is better, just givng the reason).

In the end your answer might be "because Arch ships 'vi'".

[0] https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/vi

--
Guillaume
 
Old 05-08-2012, 05:24 PM
Taylor Hedberg
 
Default view command

G. Schlisio, Tue 2012-05-08 @ 17:31:49+0200:
> i stumbled over view being a link to ex, and not to vim, as i am used
> to with several other distros (opensuse, debian). is there any
> particular reason for that behaviour?

FYI, you can use `vim -R` to explicity invoke Vim in read-only mode. Or
even `alias view=vim -R` in your shell to override the symlink to
/usr/bin/ex.
 
Old 05-08-2012, 11:00 PM
"G. Schlisio"
 
Default view command

Am 08.05.2012 19:24, schrieb Taylor Hedberg:

G. Schlisio, Tue 2012-05-08 @ 17:31:49+0200:

i stumbled over view being a link to ex, and not to vim, as i am used
to with several other distros (opensuse, debian). is there any
particular reason for that behaviour?

FYI, you can use `vim -R` to explicity invoke Vim in read-only mode. Or
even `alias view=vim -R` in your shell to override the symlink to
/usr/bin/ex.
thanks, thats what i alredy did before, i was just curious about why it
is different by default. some things about arch use to be kind of
sophisticated.
but sure, as guillaume mentiones, its vanilla behavior. thats quite an
arch way to do it.
 

Thread Tools




All times are GMT. The time now is 03:55 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org