Step 1, Install sublime3
Download sublime2/3 from http://www.sublimetext.com/
$tar -jxvf sublime_text_3_build_3083_x64.tar.bz2 //V3
$tar -jxvf Sublime\ Text\ 2.0.2\ x64.tar.bz2 // If you install V2 sublime
$sudo mv sublime_text_3 /usr/lib/ //So you needn't set PATH
$sudo ln -s /usr/lib/sublime_text_3/sublime_text /usr/bin/sublime
$sublime
Step 2, Install package control
2.1,Ctrl+~ and paste in sublime's command line
2.2, For V3 sublime
import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
2.3, For V2 sublime
import urllib2,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; 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()) ); by = urllib2.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')
2.4, Restart sublime
Step 3,Install SublimeJEDI (or codeintel)
Two ways to install plugins: command line or GUI
3.1, if cmd line. do as the following :
#cd ~/.config/sublime-text-3/Packages/
Then
#git clone https://github.com/srusskih/SublimeJEDI.git "Jedi - Python autocompletion"
3.2, Switch to sublime GUI and Ctrl+Shift+P, input "install package", then select "jedi" to install SublimeJEDI
3.3, Similar steps for codeintel
4,Tips:
Ctrl+~
Ctrl+Shift+p
Ctrl+b
View-Syntax->select python
5, More details on :
https://packagecontrol.io/
https://github.com/srusskih/SublimeJEDI
http://dubroy.com/blog/so-you-want-to-install-a-python-package/
http://www.sublimetext.com/
https://packagecontrol.io/packages/SublimeCodeIntel
https://packagecontrol.io/installation
Author: Augustone Z