This is my customized Sublime Text 2 config.
Install Sublime Text 2.
Install Package Control by opening View > Show Console
and pasting this:
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')
Then restart Sublime.
Go to your Sublime Text 2 Packages directory:
cd ~/Library/Application\ Support/Sublime\ Text\ 2/
Clone the settings repository using the command below:
$ rm -rf Packages
$ git clone https://github.com/dickeyxxx/sublime.git Packages
To get the subl
command:
$ ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
To make Sublime your default editor, run this command:
$ echo 'export EDITOR='subl -w' >> ~/.bash_profile
I use the vintage
plugin that makes Sublime act like vim (you may not want this). To disable, add this to your User Preferences:
"ignored_packages": ["Vintage"]
To get RubyMarkers to work, you will need to install rcodetools
into your system ruby. To do so:
$ rbenv local system
$ gem install rcodetools