Bug#830580: Please install alternatives for vi, vim, view, vimdiff, etc

Josh Triplett josh at joshtriplett.org
Sat Jul 9 18:08:53 UTC 2016


On Sat, Jul 09, 2016 at 10:12:27AM -0700, Josh Triplett wrote:
> Please consider installing alternatives for /usr/bin/vi, /usr/bin/vim,
> /usr/bin/view, /usr/bin/vimdiff, and so on.
> 
> (If nvim doesn't already support using "view" as an alias for "nvim -R",
> and vimdiff as an alias for "vim -d", then don't install those
> alternatives until it does.)

Upstream mentioned that they've decided not to support checking argv[0] for
"view" and "vimdiff".  However, the Debian package could install a shell script
"nvimdiff" that just contains:

#!/bin/sh
exec nvim -d "$@"

and then install that as an alternative for /usr/bin/vimdiff. Likewise with
"nview" and nvim -R.  That would help well-trained fingers and tools like "git
mergetool".

Thanks,
Josh Triplett



More information about the pkg-vim-maintainers mailing list