You are not logged in.
Pages: 1
It appears that the version of "vi" that is in Core is functionally identical to "vim" from extra. Both the package repository and "vi" itself refer to "vi" as "vi enhanced" or "vim". The only functional difference that I can find between the two packages is that "vim" has a significantly larger set of dependencies without acheiving any noticeable increase in functionality.
Does anyone know of any particular differences or why a user shouldn't just symlink "vi" to "vim"?
Thanks.
Offline
Vim is Vi - improved. You can look at here for description:
Offline
@Mazur: Thank you for providing no help whatsoever. I know what the differences are supposed to be, which is why I'm asking this question because the Vi from Core is obviously just a version of Vim. Spend some time using Vi on your Arch system and get back to me when you find a difference. Thanks.
Offline
./configure --prefix=/usr --localstatedir=/var/lib/vim --mandir=/usr/share/man \
--with-compiledby=ArchLinux --with-features=normal \
--with-global-runtime=/usr/share/vim --with-vim-name=vi \
--disable-gpm --disable-acl --with-x=no --disable-gui --enable-multibyte
./configure --prefix=/usr --localstatedir=/var/lib/vim --mandir=/usr/share/man \
--with-compiledby=ArchLinux --with-features=big \
--with-x=yes --disable-gui \
--with-global-runtime=/usr/share/vim --with-vim-name=vim \
--enable-multibyte --enable-cscope \
--enable-perlinterp --enable-pythoninterp --enable-rubyinterp
Seems to me the vi package disables quite a few things.
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
vi PKGBUILD wrote:./configure --prefix=/usr --localstatedir=/var/lib/vim --mandir=/usr/share/man \
--with-compiledby=ArchLinux --with-features=normal \
--with-global-runtime=/usr/share/vim --with-vim-name=vi \
--disable-gpm --disable-acl --with-x=no --disable-gui --enable-multibytevim PKGBUILD wrote:./configure --prefix=/usr --localstatedir=/var/lib/vim --mandir=/usr/share/man \
--with-compiledby=ArchLinux --with-features=big \
--with-x=yes --disable-gui \
--with-global-runtime=/usr/share/vim --with-vim-name=vim \
--enable-multibyte --enable-cscope \
--enable-perlinterp --enable-pythoninterp --enable-rubyinterpSeems to me the vi package disables quite a few things.
Between your post and the bug report found here http://bugs.archlinux.org/task/13239, it explains a lot. Thank you. :-)
Vi is essentially "vim-tiny". That's the reason behind this.
Last edited by daschu117 (2009-09-09 14:51:32)
Offline
@Mazur: Thank you for providing no help whatsoever. I know what the differences are supposed to be, which is why I'm asking this question because the Vi from Core is obviously just a version of Vim. Spend some time using Vi on your Arch system and get back to me when you find a difference. Thanks.
Welcome to the forums, daschu117; I hope you enjoy your stay. ![]()
You'll find, as the saying goes, you'll catch more flies with honey than vinegar. In the future, if you find somebody has misunderstood a question you have or provided an answer that doesn't help, it'd be best if you avoid the sarcastic commentary - you're more likely to get helpful responses down the road that way.
Offline
Does anyone know of any particular differences or why a user shouldn't just symlink "vi" to "vim"?
If you want, it would be easier to enter an alias to replace vi with vim instead messing with the system. alias vi='vim'
Offline
"vi" is basically meant for system maintenance, thus it is a more lightweight vim compilation.
Yet, it need not be a vim installation like this. One can use e.g. "nvi" for this purpose which strives to be a reimplementation of the original BSD vi editor.
There are discussions to use this one instead of the current lightweight vim. See for instance this thread: http://bbs.archlinux.org/viewtopic.php?id=72938
Last edited by bernarcher (2009-09-09 19:06:07)
To know or not to know ...
... the questions remain forever.
Offline
Look at the vi in testing. That is _not_vim at all. So the situation correctly explained above may change in near future, and vi really will be vi.
Last edited by Stefan Husmann (2009-09-09 19:17:40)
Offline
Look at the vi in testing. That is _not_vim at all. So the situation correctly explained above may change in near future, and vi really will be vi.
well... exvi anyway...
Offline
Stefan Husmann wrote:Look at the vi in testing. That is _not_vim at all. So the situation correctly explained above may change in near future, and vi really will be vi.
well... exvi anyway...
In case anybody wonders about what exvi might be: have a look at Vi Pages - Vi Clones and HomePages. There are dozens of vi-clones out in the wild. ![]()
To know or not to know ...
... the questions remain forever.
Offline
If I uninstall vi and alias vi='vim', would that break visudo?
Offline
If I uninstall vi and alias vi='vim', would that break visudo?
No, as long as the alias is for root...
Offline
Verve87 wrote:If I uninstall vi and alias vi='vim', would that break visudo?
No, as long as the alias is for root...
Actually, I think that visudo uses the EDITOR enviroment variable. As long as you set that in /etc/profile, you might be able to uninstall vi.
Offline
Allan wrote:Verve87 wrote:If I uninstall vi and alias vi='vim', would that break visudo?
No, as long as the alias is for root...
Actually, I think that visudo uses the EDITOR enviroment variable. As long as you set that in /etc/profile, you might be able to uninstall vi.
You should add EDITOR and VISUAL (if you set that) to env_keep in sudoers as well, or else you won't be able to do things like "sudo visudo" or "sudo git commit" - basically, things that run an editor under sudo, but don't run a shell first.
Offline
The AUR pkgbuild didn't work correctly, but another vi clone that I used in Slackware and now use in Arch is elvis.
It's lighter than vim, but still has a bunch of great features.
Offline
This command, as root, opens the sudoers file with nano.
EDITOR=nano visudoJust change nano to your favorite editor. You can use leafpad or gedit or whatever as the editor.
Offline
The AUR pkgbuild didn't work correctly, but another vi clone that I used in Slackware and now use in Arch is elvis.
It's lighter than vim, but still has a bunch of great features.
Opposite to me.
Offline
Pages: 1