The configuration about Sublime 2 AND 3 in both linux and windows
- Sublime 2
- Copy the
Packages/*
to$HOME/.config/sublime-text-2/Packages
- Copy the
- Sublime 3
- Copy
Ubuntu/sublime-text-3/.config/sublime-text-3
to~/.config
- Copy
Press Ctrl + Shift + p
to open Anything Panel
- SublimeCodeIntel
- Vintage
- VintageEx
- ConvertToUTF8
- GBK Encoding Support
- Navigation History
- GotoLastEdit
- OpenSearchResult
$ git clone https://github.com/abrookins/OpenSearchResult.git ~/.config/sublime-text-3/Packages
- Theme - Marslo
$ cd ~/.config/sublime-text-3/Packages $ git clone https://github.com/Marslo/marslo-theme.git "Theme - Marslo"
- Download: http://www.sublimetext.com/
- Sublime2 Installation:
# add-apt-repository ppa:webupd8team/sublime-text-2
$ sudo apt-get update;
$ sudo apt-get sublime-text-dev
- Package Contrl Installation:
- For Sublime2:
- Press
Ctrl + `
- Input the following and press
Enter
:
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')
- Press
- For Sublime3:
- Press
Ctrl + `
- Input the following code and press
Enter
:import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())
import urllib.request,os,hashlib; h = 'eb2297e1a458f27d836c04bb0cbaf282' + 'd0e7a3098092775ccb37ca9d6b2e4b7d'; 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)
- Older method:
$ cd Packages/ $ git clone https://github.com/wbond/sublime_package_control.git "Package Control" $ cd "Package Control" $ git checkout python3
- Press
- For Sublime2:
- Open the execution file by binary:
# vim -d /usr/lib/sublime-text-2/sublime_text
- Change strings:
- input:
:%!xdd
- Search:
/3342 3032
- Change to: 3242 3042
- input:
:%s/3342 3032/3242 3042/
- Save and exit
:!xxd -r
:x
- Open Sublime -> Help -> Enter License, and paste following contents [ALL of them]:
¡ª¨CBEGIN LICENSE¡ª¨C
hiwanz
Unlimited User License
EA7E-26838
5B320641E6E11F5C6E16553C438A6839
72BA70FE439203367920D70E7DEB0E92
436D756177BBE49EFC9FBBB3420DB9D3
6AA8307E845B6AB8AF99D81734EEA961
02402C853F1FFF9854D94799D1317F37
1DAB52730F6CADDE701BF3BE03C34EF2
85E053D2B5E16502F4B009DE413591DE
0840D6E2CBF0A3049E2FAD940A53FF67
¡ª¨CEND LICENSE¡ª¨C
- Download(Sublime3Beta): http://www.sublimetext.com/3
- Package Control Installation (Reference: http://wbond.net/sublime_packages/package_control/installation#ST3):
- Installation by manually:
- Download git
- Clone https://github.com/wbond/sublime_package_control.git as "Package Control" in foler %appdata%\Sublime Text 3\Packages
For Example:
$ cd /c/user/<LOGINNAME>/AppData/Roaming/Sublime\ Text\ 3/Packages $ git clone https://github.com/wbond/sublime_package_control.git "Package Control" $ cd "Package Control" $ git checkout python3
- Installation by automation:
ctrl + `
- Input:
import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())
- Installation by manually:
- Copy all files in foler Win7(Sublime3Beta) to local path
%appdata%\Sublime Text 3\Packages
- Restart Sublime 3
- Package Control
- VintageEX
- Theme - Soda
- ConvertToUTF8
- GBK Encoding Support
- Vintageous
- Navigation History
- GotoLastEdit
- OpenSearchResult
- Ctags
,x
: toggle commentcmd
: Open Command and cd to the current file pathalt + shift + j
: navigation history backalt + shift + l
: navigation history forwardalt + k
: scroll line (up)alt + j
: scroll line (down)alt + l
: go to next viewalt + h
: go to previous viewalt + b
: backward word (Emacs shortcut)alt + f
: forward word (Emacs shortcut)ctrl + ]
: navigation to definitionctrl + t
: navigation jump backctrl + e
: go to the end of line (Emacs shortcut)ctrl + a
: go to the beginning of line (Emacs shortcut)ctrl + alt + o
: Open the file browser and to current directory