Download SublimeText2http: wwwsublimetextcom2 from the official website or run it in the command line (with Fedora20
Download Sublime Text 2 http://www.sublimetext.com/2
You can also execute it in the command line (taking Fedora20 64-bit as an example ):
[root@localhost Downloads]# wget http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.2%20x64.tar.bz2
Find the downloaded Sublime Text 2.0.2 x64.tar.bz2
Run the following command to decompress the package:
[root@localhost Downloads]# bzip2 -d /home/zemo/Downloads/Sublime\ Text\ 2.0.2\ x64.tar.bz2
Decompress the package into a *. tar package.
Then execute the command
[root@localhost Downloads]# tar -vxf /home/zemo/Downloads/Sublime\ Text\ 2.0.2\ x64.tar -C /opt/
In this way, decompress the package to the/opt directory.
For ease of use, rename:
[root@localhost Downloads]# mv /opt/Sublime\ Text\ 2/ /opt/Sublime_Text_2
Run the following command:
[root@localhost zemo]# touch /usr/bin/sublime [root@localhost zemo]# chmod 755 /usr/bin/sublime [root@localhost zemo]# vim /usr/bin/sublime
Paste the following code:
#!/bin/shexportrt SUBLIME_HOME=”/opt/Sublime_Text_2″$SUBLIME_HOME/sublime_text $*
Now that the Sublime Text is installed, it is mainly used for document editing.