Making VIM the default text editor on Ubuntu
By Leo Gaggl
In my never ending quest to find the ideal text editor here is another installment. Since I have been using VIM as my default command line editor for years I thought I give it a try for basic GUI editing as well.
Install and set desktop app & icon
sudo apt-get install vim vim-gnome<br></br>sudo wget --output-document=/usr/share/applications/gvim.desktop https://raw.github.com/leogaggl/misc-scripts/master/gvim.desktop<br></br>sudo wget --output-document=/usr/share/icons/hicolor/scalable/apps/gvim.svg http://gfxmonk.net/images/vim-logo/vim-logo.svg<br></br>sudo update-desktop-database
Set MIME defaults
vim ~/.local/share/applications/mimeapps.list<br></br>#add or edit the following mime type and add others as needed<br></br>text/plain=gvim.desktop;