Installing Sublime for my use

Installing Sublime for my use

In this article, I keep track of how I installed Sublime Text 2 on my computer(s) running Ubuntu, from download to adding a launcher in Unity sidebar.


  • Download Sublime from website
    • download linux 64 bit version at
      • latest version at the time of my writing is 2.0.2
    • save to /opt/INSTALL_MEDIA
  • create /opt/sublimetext directory
cd /opt
sudo mkdir sublimetext
sudo chown lesaint:lesaint sublimetext
  • cp tar file to /opt/sublime, decompress it and create symbolic link to the current version
cp ../INSTALL_MEDIA/Sublime\ Text\ 2.0.2\ x64.tar.bz2 .
tar xvfj Sublime\ Text\ 2.0.2\ x64.tar.bz2
mv Sublime\ Text\ 2 2.0.2
ln -s 2.0.2 sublime


  • add sublime to local bin directory for convenient command line use
ln -s /opt/sublimetext/sublime/sublime_text /usr/local/bin/sublime
  • create sidebar launcher in Unity
    • create a desktop file in ~/.local/share/applications/ called sublimetext.desktop with following content
[Desktop Entry]
    Name=Sublime Text 2
    Exec="/opt/sublimetext/sublime/sublime_text" %F

    [Desktop Action New]
    Name=New Editor Window
    Exec="/opt/sublimetext/sublime/sublime_text" --new-window
- resources :
    + [](
    + [](

Minimal Sublime tuning

  • Install Package Control extension
  • Keyboard shortcuts
    • make delete line shortcut actually useable
      • default shurtcut ctrl+shift+k can not be used with a single hand
      • open shorcut preferences : Preferences > Key Bindings - User
      • add the following line (which overwrite default’s ctrl+d key binding for command find_under_expand)
{ "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} }
  • User preferences
"ensure_newline_at_eof_on_save": true,
    "trim_trailing_white_space_on_save": true
- improve visibility of modified files tabs and hightligh line with cursor
"highlight_line": true,
    "highlight_modified_tabs": true