Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux General Discussion (http://www.linux-archive.org/archlinux-general-discussion/)
-   -   view command (http://www.linux-archive.org/archlinux-general-discussion/664353-view-command.html)

"G. Schlisio" 05-08-2012 03:31 PM

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

Tiago Sousa 05-08-2012 04:27 PM

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
>

Guillaume Alaux 05-08-2012 05:06 PM

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

Taylor Hedberg 05-08-2012 05:24 PM

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.

"G. Schlisio" 05-08-2012 11:00 PM

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.


All times are GMT. The time now is 04:22 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.