November 7, 2011 · General · Email This Post

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

1 Comment to “How to set gvim as default text editor instead of gedit on ubuntu 11.10”

  1. maxsnull says:

    Isn’t it ironic that you use gedit to change the default editor from gedit to gvim?

    [Reply]

Leave a Reply