Your message dated Wed, 23 Apr 2025 21:09:53 -0400
with message-id
<e3du3y6cxa4m7fym5qxtgz4aaj3zi3klkbbz7mtbpkrvqvutan@savdwb5edii2>
and subject line Re: Bug#1103772: Provide vimdiff alternative
has caused the Debian Bug report #1103772,
regarding Provide vimdiff alternative
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1103772: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1103772
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: neovim
Version: 0.10.4-8
Severity: normal
Tags: patch
Trying to run `vimdiff` after setting up Neovim, I find it using
`vim.nox`, and Neovim is not set up to provide a vimdiff
alternative:
> update-alternatives: error: alternative /usr/bin/nvim for vimdiff not
> registered; not setting
All that's needed is this in `postinst`:
```
update-alternatives --install /usr/bin/vimdiff vimdiff
/usr/libexec/neovim/vimdiff 40
```
and it works.
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.22-amd64 (SMP w/32 CPU threads; PREEMPT)
Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8), LANGUAGE=en_NZ:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages neovim depends on:
ii libc6 2.41-7
ii libluajit-5.1-2 2.1.0+openresty20250117-2
ii libmsgpack-c2 6.0.1-3+b1
ii libtree-sitter0.22 0.22.6-6
ii libunibilium4 2.1.1-2+b1
ii libuv1t64 1.50.0-2
ii libvterm0 0.3.3-3+b1
ii lua-lpeg 1.1.0-2
ii lua-luv 1.48.0-2-3
ii neovim-runtime 0.10.4-8
Versions of packages neovim recommends:
ii python3-pynvim 0.5.2-2
ii xclip 0.13-4
ii xxd 2:9.1.1230-1
Versions of packages neovim suggests:
pn ctags <none>
ii vim-scripts 20210124.4
-- no debconf information
--
.''`. martin f. krafft <madduck@d.o>
: :' : proud Debian developer
`. `'` http://people.debian.org/~madduck
`- Debian - when you have better things to do than fixing systems
--- End Message ---
--- Begin Message ---
On Mon, Apr 21, 2025 at 02:36:54PM +0200, martin f krafft wrote:
Trying to run vimdiff after setting up Neovim, I find it using vim.nox, and
Neovim is not set up to provide a vimdiff alternative:
update-alternatives: error: alternative /usr/bin/nvim for vimdiff not
registered; not setting
/usr/bin/nvim isn't the alternative, because nvim doesn't do the argv
detection like vim does. However, neovim _does_ register a vimdiff
alternative[0] using /usr/libexec/neovim/vimdiff.
[0]: https://binarycontrol.debian.net/cache/unstable/neovim/postinst
I'm not sure why your install didn't have it registered.
Cheers,
--
James
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7 2D23 DFE6 91AE 331B A3DB
--- End Message ---