How to set gvim as default text editor instead of gedit on ubuntu 11.10

By default if you want to open any files it will take gedit as default text editor.If you want to change this to gvim do the following procedure.

First you need to edit the /etc/gnome/defaults.list file

sudo gedit /etc/gnome/defaults.list

Change the following setting

text/plain=gedit.desktop

to

text/plain=gvim.desktop

Save and exit the file this should solve the issue.

You can check this by right clicking on any text file you should see Open with GVim Text Editor

Sponsored Link

Incoming search terms:

Related posts

One thought on “How to set gvim as default text editor instead of gedit on ubuntu 11.10

Leave a comment

Your email address will not be published. Required fields are marked *