1) I have just installed vim-gtk. Various links in /etc/alternatives have been changed to reflect the installation of vim-gtk, as follows:
lrwxrwxrwx 1 root root 12 Apr 10 22:24 editor -> /usr/bin/
vim
lrwxrwxrwx 1 root root 28 Apr 10 22:24 editor.1.gz -> /usr/share/man/man1/
vim.1.gz
lrwxrwxrwx 1 root root 12 Apr 10 22:24 ex -> /usr/bin/
vim
lrwxrwxrwx 1 root root 28 Apr 10 22:24 ex.1.gz -> /usr/share/man/man1/
vim.1.gz
lrwxrwxrwx 1 root root 13 Apr 10 22:43 vi -> /usr/bin/
vim
lrwxrwxrwx 1 root root 28 Apr 10 22:24 vi.1.gz -> /usr/share/man/man1/
vim.1.gz
lrwxrwxrwx 1 root root 12 Apr 10 22:24 view -> /usr/bin/
vim
lrwxrwxrwx 1 root root 28 Apr 10 22:24 view.1.gz -> /usr/share/man/man1/
vim.1.gz
I changed the symbolic link for vi from /usr/bin/
vim to /usr/bin/
gvim.
Code:
ln -sf /usr/bin/gvim vi
Update: I tried using update-alternatives --install
Code:
update-alternatives --install /usr/bin/vi vi /usr/bin/gvim 130
Code:
update-alternatives --display vi
shows the best current editor is /usr/bin/gvim.
However, when I key in the command vi <filename>, the text-based vim instead of gvim is launched. Shouldn't gvim be launched instead?
2) Do I need to edit vi.1.gz -> /usr/share/man/man1/
vim.1.gz to something else after changing vi -> /usr/bin/
gvim ?
Thanks !