[arch-general] 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
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
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=p... -- Guillaume
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, 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.
Am 08.05.2012 19:24, schrieb Taylor Hedberg: 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.
participants (4)
-
G. Schlisio
-
Guillaume Alaux
-
Taylor Hedberg
-
Tiago Sousa