Ubuntu14.04安装Sublime text2及Package Control插件

1、安装Sublime text2:

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text

2、安装Package Control插件:
打开Sublime text2,按ctrl + ~,在console中输入:

import urllib2, os;
pf='Package Control.sublime-package';
ipp = sublime.installed_packages_path();
os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler( )));
open( os.path.join( ipp, pf), 'wb' ).write( urllib2.urlopen( 'http://sublime.wbond.net/' +pf.replace( ' ','%20' )).read());
print( 'Please restart Sublime Text to finish installation')

即可完成安装

3、使用Package Control插件:
打开Sublime text2,按Ctrl+Shift+P ,输入Package Control: Install Package,
即可选择要安装的插件

你可能感兴趣的:(linux,sublimetext)