Install Sublime Text 2 on Ubuntu 13.04

Source: Internet
Author: User

I. Environment
Operating System: Ubuntu 13.04x64
Editor: Sublime Text v2.0.1 x64


2. Download and decompress
Download the address of SublimeText: http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1%20x64.tar.bz2

$ Sudo mv Sublime \ Text \ 2.0.1 \ x64.tar.bz2 sublime.tar.bz2
$ Sudo tar vxjf sublime.tar.bz2
$ Sudo mv Sublime \ Text \ 2/sublime


3. create shortcuts
We hope that the SublimeText editor can be opened only by entering sublime on the terminal. Then, you can create a symbolic link, which is equivalent to a Windows shortcut.

$ Sudo ln-s/tool/sublime/sublime_text/usr/bin/sublime


Iv. Unified Configuration
To keep SublimeText consistent during each operation, you must create a configuration file for it at/usr/share/applications"

$ Sudo sublime/usr/share/applications/sublime. desktop

Paste the following content:

[Desktop Entry]
Version = 1.0
Name = Sublime Text 2
# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
# From Ubuntu's language-pack-kde-XX-base packages, version 13.04-20130413.
GenericName = Text Editor

Exec = sublime
Terminal = false
Icon =/tool/sublime/Icon/48x48/sublime_text.png
Type = Application
Categories = TextEditor; IDE; Development
X-Ayatana-Desktop-Shortcuts = NewWindow

[NewWindow Shortcut Group]
Name = New Window
Exec = sublime-n
TargetEnvironment = Unity

Save and exit.


5. configure all text files to be opened with SublimeText

$ Sudo sublime/usr/share/applications/defaults. list
Replace all gedit. desktop with sublime. desktop.

Finally, remember to lock SublimeText to the initiator, Which is perfect.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.