Centos中安装Sublime编辑器
1.从官网下载相应操作系统的下的安装包(http://www.sublimetext.com/2),这里下的是linux下的安装包
2.解压安装包,并将其放在/opt/下:
tar-jxvf Sublime Text 2.0.1.tar.bz2 -C/opt/
3.链接sublime的启动文件到/usr/bin,以便可以在终端使用sublime启动:
ln-s /opt/Sublime\ Text\ 2/sublime_text/usr/bin/sublime
4.建立桌面快捷方式,使用sublime新建sublime.desktop:
sublime/usr/share/applications/sublime.desktop
并在其中加入下面内容:
[DesktopEntry]
Version=1.0
Name=Sublime Text 2
# Only KDE 4 seems to use GenericName, so wereuse the KDE strings.
# From Ubuntu's language-pack-kde-XX-basepackages, version 9.04-20090413.
GenericName=Text Editor
Exec=sublime
Terminal=false
Icon=/opt/Sublime Text2/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
5.还可以将sublime加入惨淡右键:
sublime~/.local/share/applications/mimeapps.list
加入以下内容:
text/plain=sublime.desktop;
有些功能的实现需要安装相应的插件,安装插件步骤如下:
http://www.qianduan.net/essential-to-sublime-the-text-2-plugins.html
Sublime Text 2入门及技巧:
http://lucifr.com/139225/sublime-text-2-tricks-and-tips/
解决Sublime Text2中文显示出现乱码的问题:
http://www.fuzhaopeng.com/2012/sublime-text-2-with-gb2312-gbk-support/