Bug#830580: Patch to install alternatives

James McCoy jamessan at debian.org
Sat Sep 24 17:10:18 UTC 2016


Thanks for the patch!

On Sun, Jul 10, 2016 at 11:27:23PM -0700, Josh Triplett wrote:
> From 8d4641be71797ef7d54a3067f2c15cb374b73b16 Mon Sep 17 00:00:00 2001
> From: Josh Triplett <josh at joshtriplett.org>
> Date: Sun, 10 Jul 2016 23:21:37 -0700
> Subject: [PATCH] Install alternatives for ex, rvim, rview, vi, vim, view, and
>  vimdiff

I don't think it makes sense to install an alternative for vi.  Neovim
is explicitly dropping various "vi compatibility" pieces of
functionality.

vimdiff and view I understand, since there are tools that explicitly
launch them (and the latter is registered in the mime system with the
vim packaging).

ex, rvim, and rview I'm more on the fence about.  I guess it makes sense
to provide them, since Neovim should be mostly a drop-in replacement.

> diff --git a/debian/neovim.postinst b/debian/neovim.postinst
> index 9c30db0..9c66ca4 100644
> --- a/debian/neovim.postinst
> +++ b/debian/neovim.postinst
> @@ -5,6 +5,13 @@ set -e
>  update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 30 \
>                      --slave /usr/share/man/man1/editor.1.gz editor.1.gz \
>                              /usr/share/man/man1/nvim.1.gz
> +update-alternatives --install /usr/bin/ex ex /usr/bin/ex.nvim 29

Why are these alternatives 29 when editor is on-par with vim.basic at
30?

> +update-alternatives --install /usr/bin/rvim rvim /usr/bin/rvim.nvim 29
> +update-alternatives --install /usr/bin/rview rview /usr/bin/rview.nvim 29
> +update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 29
> +update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 29
> +update-alternatives --install /usr/bin/view view /usr/bin/view.nvim 29
> +update-alternatives --install /usr/bin/vimdiff vimdiff /usr/bin/vimdiff.nvim 29

Cheers,
-- 
James
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7  2D23 DFE6 91AE 331B A3DB



More information about the pkg-vim-maintainers mailing list