Sublime - quick Vim settings
## Download OSX Sublime 2
https://download.sublimetext.com/Sublime%20Text%202.0.2.dmg
## Install Package Control
https://packagecontrol.io/installation#st2
1. View > Show Console
2. Paste the following into console:
import urllib2,os,hashlib; h = 'df21e130d211cfc94d9b0905775a7c0f' + '1e3d39e33b79698005270310898eea76'; 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')
## Install Emmet
CMD + Shift + p > Install Package > Emmet
## Enable Vintage Mode
https://www.sublimetext.com/docs/2/vintage.html
1. Preferences > Settings - User
{
"font_size": 14.0,
"translate_tabs_to_spaces": true,
"tab_size": 2,
"ignored_packages":[]
}
2. Preferences -> Key bindings - User
[{ "keys": ["j", "j"], "command": "exit_insert_mode",
"context":
[
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
}]