Sublime Text Config
, { "keys": ["alt+space"], "command": "insert_snippet", "args": {"contents": " "}}, { "keys": ["alt+shift+space"], "command": "insert_snippet", "args": {"contents": " "}}## Anonymous Pro Download the font
Install Package Control:
Open the console (View > Show Console)
Past in the code from the Package Control website
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'
Install packages (Cmd + Shift + P then type Package / Install Package)
Install Command Line tool
sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /bin/subl
Update User Config
Install Keymap Install Settings
Install alias in ~/.zshrc
alias slime='open -a "Sublime Text 2"'
{
/*
Selects the way the lines with errors or warnings are marked; "outline"
(default) draws outline boxes around the lines, "fill" fills the lines
with the outline color, and "none" disables all outline styles
(useful if "sublimelinter_gutter_marks" is set).
*/
"sublimelinter_mark_style": "fill",
// If true, lines with errors or warnings will have a gutter mark.
"sublimelinter_gutter_marks": true,
/*
Maps language names **as listed at the beginning of the README** (but all lowercase)
to executables for non-built in linters. If the executable is not in the default system path,
or on posix systems is not in /usr/local/bin or ~/bin, then you must specify
the full path to the executable. Note that paths in Windows must use double
backslashes, for example "C:\\Program Files (x86)\\nodejs\\node.exe".
Please note that the map _keys_ do not always match the name of the
executable, but rather the language syntax for the executable to lint.
This is the effective default map; your mappings may override these.
"sublimelinter_executable_map":
{
"perl": "perl",
"php": "php",
"ruby": "ruby"
},
*/
"sublimelinter_executable_map":
{
"ruby": "rvm-auto-ruby"
}
}
// Settings in here override those in "Default/Preferences.sublime-settings", and
// are overridden in turn by file type specific settings.
{
// Note that the font_face and font_size are overriden in the platform
// specific settings file, for example, "Preferences (Linux).sublime-settings".
// Because of this, setting them here will have no effect: you must set them
// in your User File Preferences.
"font_face": "Anonymous Pro",
"font_size": 11,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": true,
// Set to true to draw a border around the visible rectangle on the minimap.
// The color of the border will be determined by the "minimapBorder" key in
// the color scheme
"draw_minimap_border": true,
// If enabled, will highlight any line with a caret
"highlight_line": true,
// Set to true to ensure the last line of the file ends in a newline
// character when saving
"ensure_newline_at_eof_on_save": true,
// Set to true to automatically save files when switching to a different file
// or application
"save_on_focus_lost": true,
// By default, auto complete will commit the current completion on enter.
// This setting can be used to make it complete on tab instead.
// Completing on tab is generally a superior option, as it removes
// ambiguity between committing the completion and inserting a newline.
"auto_complete_commit_on_tab": true,
// By default, shift+tab will only unindent if the selection spans
// multiple lines. When pressing shift+tab at other times, it'll insert a
// tab character - this allows tabs to be inserted when tab_completion is
// enabled. Set this to true to make shift+tab always unindent, instead of
// inserting tabs.
"shift_tab_unindent": true,
// The theme controls the look of Sublime Text's UI (buttons, tabs, scroll bars, etc)
"theme": "Soda Dark.sublime-theme",
// Makes tabs with modified files more visible
"highlight_modified_tabs": true,
// Show folders in the side bar in bold
"bold_folder_labels": true,
// OS X only: This controls if an empty window is created at startup or not.
"create_window_at_startup": false,
// Set to false to disable scrolling past the end of the buffer.
// On OS X, this value is overridden in the platform specific settings, so
// you'll need to place this line in your user settings to override it.
"scroll_past_end": true,
// Set to true to removing trailing white space on save
"trim_trailing_white_space_on_save": true,
// looks cool!
"caret_style": "phase",
// If true, the selected text will be copied into the find panel when it's
// shown.
// On OS X, this value is overridden in the platform specific settings, so
// you'll need to place this line in your user settings to override it.
"find_selected_text": true,
// The number of spaces a tab is considered equal to
"tab_size": 2,
// Show the full path to files in the title bar.
// On OS X, this value is overridden in the platform specific settings, so
// you'll need to place this line in your user settings to override it.
"show_full_path": true,
// Always shows the fold buttons
"fade_fold_buttons": false,
// OS X 10.7 only: Set to true to disable Lion style full screen support.
// Sublime Text must be restarted for this to take effect.
"use_simple_full_screen": true,
// List any packages to ignore here. When removing entries from this list,
// a restart may be required if the package contains plugins.
"ignored_packages":
[
"Vintage"
],
// Controls how the indent guides are drawn, valid options are
// "draw_normal" and "draw_active". draw_active will draw the indent
// guides containing the caret in a different color.
"indent_guide_options":
[
"draw_active"
],
// The encoding to use when the encoding can't be determined automatically.
// ASCII, UTF-8 and UTF-16 encodings will be automatically detected.
"fallback_encoding": "UTF-8",
// Sets the colors used within the text area
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"detect_slow_plugins": false
}
[
// alias paste and indent to paste
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" },
// Replace special spaces with normal space
{ "keys": ["alt+space"], "command": "insert_snippet", "args": {"contents": " "}},
{ "keys": ["alt+shift+space"], "command": "insert_snippet", "args": {"contents": " "}},
// http://www.sublimetext.com/forum/viewtopic.php?f=2&t=4909&p=22059#p22059
// Skip after ), " or ] when typing enter
{ "keys": ["enter"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
[
{ "key": "following_text", "operator": "regex_contains", "operand": "^[)\"\\]]", "match_all": true },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false }
]
}
]