Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I get Quickly to use Gvim (or just vim in a terminal) as its default text editor instead of Gedit?

If this can be done, I must be doing it wrong...

Ubuntu 10.10 AMD64.

share|improve this question
up vote 7 down vote accepted

I assume you mean you want to change the editor that Quickly loads when you ask it to.

Well I did some sleuthing... I'll show you what I did followed by the answer.

  1. I fired off this command:

    sudo find / -name "*quickly*" -exec grep gedit {} \;

    That searches for all files with quickly in and then greps them for gedit. It was a long shot -- I should have refined the search so it was any paths with quickly in but it matched!

    Binary file /usr/share/quickly/templates/ubuntu-application/internal/quicklyutils.pyc matches
        editor = "gedit"
  2. I opened up /usr/share/quickly/templates/ubuntu-application/internal/ (not the compiled version) in nano, searched for gedit and saw:

    def get_quickly_editors():
        '''Return prefered editor for ubuntu-application template'''
        editor = "gedit"
        default_editor = os.environ.get("EDITOR")
        if not default_editor:
            default_editor = os.environ.get("SELECTED_EDITOR")
        if default_editor:
           editor = default_editor
        return editor
  3. From that you can see it asks for the environment value EDITOR!

    Just run your quickly commands as:

    env EDITOR=gvim quickly edit

    or export it to persist

    export EDITOR=gvim
    quickly edit

    Add the export line to your ~/.bashrc line if you want it to persist between sessions.

share|improve this answer
Just tested it and it appears to work for all the default templates. – Oli Jan 17 '11 at 21:33
Yes! I had this! Figured out it was a stupid mistake in .bashrc. [high-five] thanks! – brews Jan 17 '11 at 21:52

After you install GVim , using Synaptic Package Manager, then it should be available in the Applications menu and you can right click on it and add the application shortcut to your desktop.

share|improve this answer
Thanks for the answer! But, I can run Gvim quite well. The issue is running it through Quickly (it's like ruby on rails, but for python and developed by Ubuntu) which generally uses Gedit as default. – brews Jan 17 '11 at 21:24
I answered this question before "brews" had capitalized the word "Quickly" in his question and provided a link. – djangofan Jan 18 '11 at 21:15

What about sudo update-alternatives –config editor? It will change the system default editor so you do not have to change individual program preferences..

From: Old article, but should still work..

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.