[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to set vim as default editor



M> For some reason after installing and reinstalling vim, ae still remains
M> the default editor.

M> when I look in /etc/alternatives I see:
M> lrwxrwxrwx    1 root     root            7 Apr 30 23:12 editor ->
M> /bin/ae
M> lrwxrwxrwx    1 root     root           21 Apr 30 23:12 editor.1.gz ->
M> /usr/man/man1/ae.1.gz
M> lrwxrwxrwx    1 root     root           12 Apr 30 23:12 ex ->
M> /usr/bin/vim
M> lrwxrwxrwx    1 root     root           28 Apr 30 23:12 ex.1.gz ->
M> /usr/share/man/man1/vim.1.gz

M> Is there some debian specific setup script that maintains these links?
M> I know I can just manually change them to point to vim, but I want to
M> run the proper program that does it so I know for future reference.

update-alternatives --config editor

See man for info.

-- 
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| Ilya Martynov (http://martynov.org/)                                    |
| GnuPG 1024D/323BDEE6 D7F7 561E 4C1D 8A15 8E80  E4AE BE1A 53EB 323B DEE6 |
| AGAVA Software Company (http://www.agava.com/)                          |
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



Reply to: