linux 下的sublime
2013-11-11 11:42
399 查看
Sublime Text 2 的安装 :
在官方网站下载Linux版本 Or 执行 # wget http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1.tar.bz2
得到一个“.tar.bz2”格式的压缩文件
进行解压,并把解压包放到:# mv /home/aneek/Downloads/Sublime_Text_2/ /opt/Sublime_Text_2
创建shotcut: (1)# touch /usr/bin/sublime
(2)# chmod 755 /usr/bin/sublime
(3)#vim /usr/bin/sublime
(4)把下面的复制到 sublime 并保存。
[plain] view plaincopy
#!/bin/sh
export SUBLIME_HOME=”/opt/Sublime_Text_2″
$SUBLIME_HOME/sublime_text $*
[plain] view plaincopy
<p>[Desktop Entry]</p><p>Name=Sublime Text 2</p><p>Comment=Sublime Text 2</p><p>Exec=<span style="color:#888888;"><span style="text-decoration: underline;">/home/john/Applications/</span></span>"Sublime Text 2"/sublime_text</p><p>Icon=/<span style="text-decoration: underline;"><span style="color:#888888;">home/john/Applications/</span></span>Sublime Text 2/Icon/48x48/sublime_text.png</p><p>Terminal=false</p><p>Type=Application</p><p>Categories=Application;Development;</p><p>StartupNotify=true</p>
软件在Linux下是无法显示中文的,可以通过如下操作解决:
打开Sublime的菜单栏 -> Preferences -> Settings – User,在配置文件中增加(前半部分原本就有,可看情况进行替换):
// Settings in here override those in “Default/Base File.sublime-settings”, and
// are overridden in turn by file type specific settings. Place your settings
// here, to ensure they’re preserved when upgrading.
{
“font_face”: “WenQuanYi Micro Hei Mono”
}
其中“文泉驿”是著名的开源字体 http://wenq.org/
设置fcitx输入法的切换键,将默认的Ctrl+Space方式设置Ctrl+Shift,但是这样效果不太好,经常中文会启动不了。
可以在其他地方输入后进行复制粘贴。
在以后的Sublime Text 2或许可以得到解决。
在官方网站下载Linux版本 Or 执行 # wget http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1.tar.bz2
得到一个“.tar.bz2”格式的压缩文件
进行解压,并把解压包放到:# mv /home/aneek/Downloads/Sublime_Text_2/ /opt/Sublime_Text_2
创建shotcut: (1)# touch /usr/bin/sublime
(2)# chmod 755 /usr/bin/sublime
(3)#vim /usr/bin/sublime
(4)把下面的复制到 sublime 并保存。
[plain] view plaincopy
#!/bin/sh
export SUBLIME_HOME=”/opt/Sublime_Text_2″
$SUBLIME_HOME/sublime_text $*
5.创建桌面图标: (1)vi /usr/share/applications/sublime.desktop
(2)把下面的复制到 sublime.desktop
并保存。
[plain] view plaincopy<p>[Desktop Entry]</p><p>Name=Sublime Text 2</p><p>Comment=Sublime Text 2</p><p>Exec=<span style="color:#888888;"><span style="text-decoration: underline;">/home/john/Applications/</span></span>"Sublime Text 2"/sublime_text</p><p>Icon=/<span style="text-decoration: underline;"><span style="color:#888888;">home/john/Applications/</span></span>Sublime Text 2/Icon/48x48/sublime_text.png</p><p>Terminal=false</p><p>Type=Application</p><p>Categories=Application;Development;</p><p>StartupNotify=true</p>
软件在Linux下是无法显示中文的,可以通过如下操作解决:
打开Sublime的菜单栏 -> Preferences -> Settings – User,在配置文件中增加(前半部分原本就有,可看情况进行替换):
// Settings in here override those in “Default/Base File.sublime-settings”, and
// are overridden in turn by file type specific settings. Place your settings
// here, to ensure they’re preserved when upgrading.
{
“font_face”: “WenQuanYi Micro Hei Mono”
}
其中“文泉驿”是著名的开源字体 http://wenq.org/
设置fcitx输入法的切换键,将默认的Ctrl+Space方式设置Ctrl+Shift,但是这样效果不太好,经常中文会启动不了。
可以在其他地方输入后进行复制粘贴。
在以后的Sublime Text 2或许可以得到解决。
相关文章推荐
- Linux文件模式
- linux文件类型详解
- Linux下tar.xz结尾的文件的解压方法
- linux 中 timeval结构体 - Neddy11 - 博客园
- Linux下jdk安装、环境变量的配置
- CentOS 配置mysql允许远程登录
- linux install&access Nessus-5.2.4
- 查看linux版本
- Linux编辑环境vim插件:taglist
- DDOS攻击以及预防
- Linux编辑环境vim插件:ctags
- Linux文件夹及权限
- VirtualBox中安装x64的Linux System
- Linux下的/lost found目录
- struct ifreq结构体与ip,子网掩码,网关等信息
- 嵌入式Linux系统中的.lds链接脚本基础
- Linux 标准目录结构
- syslogd和klogd
- 在Linux-2.6.32.2下为ST16C554移植驱动的经历
- centos 6.3 搭建svn