Skip to content

marslo/Sublime2-3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sublime Configure

The configuration about Sublime 2 AND 3 in both linux and windows

Ubuntu

Configuration:

  • Sublime 2
    • Copy the Packages/* to $HOME/.config/sublime-text-2/Packages
  • Sublime 3
    • Copy Ubuntu/sublime-text-3/.config/sublime-text-3 to ~/.config

Packages

Press Ctrl + Shift + p to open Anything Panel

Package Installation

  • 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"

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')
        
    • 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
        

Crack (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
:%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

Windows (Win7)

Installation

Use specified configurations and themes:

  • Copy all files in foler Win7(Sublime3Beta) to local path %appdata%\Sublime Text 3\Packages
  • Restart Sublime 3

Installed Packages:

Shortcut Mapping

  • ,x: toggle comment
  • cmd: Open Command and cd to the current file path
  • alt + shift + j: navigation history back
  • alt + shift + l: navigation history forward
  • alt + k: scroll line (up)
  • alt + j: scroll line (down)
  • alt + l: go to next view
  • alt + h: go to previous view
  • alt + b: backward word (Emacs shortcut)
  • alt + f: forward word (Emacs shortcut)
  • ctrl + ]: navigation to definition
  • ctrl + t: navigation jump back
  • ctrl + 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

Screenshot:

Ubuntu

Ubuntu_Sublime3

Windows:

Sublime3BetaWin7

About

The configuration about Sublime 2 AND 3 in both linux and windows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published