ex-vi-compat: neovim
Greetings! Recently the package `ex-vi-compat` was introduced, which conflicts with, and replaces `vi`. This PKGBUILD installs `vim` onto the system, and symlinks a bunch of commands to `vim`. However, I use `neovim`, and it seems a bit superfluous to me to install `vim`, when `neovim` can do all that `vim` can do in this regard. Is there any way to perhaps check if either `vim` or `neovim` is already installed on the system, and then use either one of them in the symlink? Something like: ```sh package() { local cmd local vimcmd # Determine which editor to use if command -v nvim &>/dev/null; then vimcmd="nvim" elif command -v vim &>/dev/null; then vimcmd="vim" else error "Neither neovim nor vim found" return 1 fi install -vDm 755 vi.sh "$pkgdir/usr/bin/vi" for cmd in {edit,ex,vedit,view} ; do ln -sv "$vimcmd" "$pkgdir/usr/bin/$cmd" done ``` Alternatively, perhaps a few changes in `vi.sh` about which editor to invoke? Kind regards, - Edmund -- Edmund Lodewijks <edmund@proteamail.com> TZ: UCT+2 / GMT+2
Recently the package `ex-vi-compat` was introduced, which conflicts with, and replaces `vi`.
This PKGBUILD installs `vim` onto the system, and symlinks a bunch of commands to `vim`.
However, I use `neovim`, and it seems a bit superfluous to me to install `vim`, when `neovim` can do all that `vim` can do in this regard. (…)
Hello, One isn’t required to install ex-vi-compat. If you use neovim, why also installing ex-vi-compat and then trying to pretend it’s not there? Simply do not install that package. Or perhaps I’m missing something in this issue. Cheers, mpan
On 2026/01/27 20:39, mpan wrote:
Hello,
One isn’t required to install ex-vi-compat. If you use neovim, why also installing ex-vi-compat and then trying to pretend it’s not there? Simply do not install that package.
Or perhaps I’m missing something in this issue.
Well, I have `vi` installed, and this new package wants to replace it. Every time I run a pacman update. So, there's that...
Cheers, mpan
Cheers, Edmund -- Edmund Lodewijks <edmund@proteamail.com> TZ: UCT+2 / GMT+2
Well, I have `vi` installed, and this new package wants to replace it. Every time I run a pacman update. So, there's that...
Hi Edmund, if you don’t need vi, you can simply uninstall it, unless something depends on it. In which case, installing vim alongside neovim shouldn’t be a big deal? Best, tippfehlr
Okay, my bad. I assumed that `neovim` has compatibility mode, but it does not (see also[0]). Sorry for the noise, and thanks for the replies! Kind regards, - Edmund [0]: https://github.com/neovim/neovim/issues/38 -- Edmund Lodewijks <edmund@proteamail.com> TZ: UCT+2 / GMT+2
participants (3)
-
Edmund Lodewijks
-
mpan
-
tippfehlr