How to use Sublime Text 2 as Quickly default editor?

Set the EDITOR environment variable to sublime and then quickly edit will use it:

export EDITOR=/usr/bin/subl
  • How do I set environment variables?

Just add the above line to your ~/.bashrc file


It does this because gedit is programmed to do that when you run it from the command line. You can make quickly do that with other editors by using quickly edit &.

Edit: I wrote a Perl script that will run the editor as a as a child of init so when you close the terminal the editor will remain open: script

You can set the following vaiables at the top of the script:

  • command: the command to be run
  • stdout: The standard output to be passed to the command (must be set or it will still output to terminal)
  • stderr: The standard output to be passed to the command (must be set or it will still output to terminal)