While trying to make vim default instead of gedit, I found this could be done two ways:
Use
defaults.list
and maketext/plain
(and others) point tovim.desktop
(what is the format for creating.desktop
files?)Use
update-alternatives
and changegnome-text-editor
(right now it has only one alternative, so I guess I have to install one more. How to do that?)
Which is the better way to do it?
vim
?