Re: How to set vim as default editor
Mark <mdevin@ozemail.com.au> wrote:
>For some reason after installing and reinstalling vim, ae still remains
>the default editor.
>
>when I look in /etc/alternatives I see:
>lrwxrwxrwx 1 root root 7 Apr 30 23:12 editor ->
>/bin/ae
>lrwxrwxrwx 1 root root 21 Apr 30 23:12 editor.1.gz ->
>/usr/man/man1/ae.1.gz
>lrwxrwxrwx 1 root root 12 Apr 30 23:12 ex ->
>/usr/bin/vim
>lrwxrwxrwx 1 root root 28 Apr 30 23:12 ex.1.gz ->
>/usr/share/man/man1/vim.1.gz
>
>Is there some debian specific setup script that maintains these links?
Yes, update-alternatives. See
http://www.debian.org/doc/FAQ/ch-customizing.html#s-diverse.
Cheers,
--
Colin Watson [cjw44@flatline.org.uk]
Reply to: