Skip to content

Instantly share code, notes, and snippets.

@KyleJamesWalker
Last active January 4, 2016 06:39
Show Gist options
  • Save KyleJamesWalker/8583510 to your computer and use it in GitHub Desktop.
Save KyleJamesWalker/8583510 to your computer and use it in GitHub Desktop.
My Sublime Settings Files

Packages

  • BlockCursorEverywhere
  • Anaconda
  • Better CoffeeScript
  • CoffeeComplete Plus (Autocompletion)
  • Git
  • GitGutter

User Settings

{
	"color_scheme": "Packages/User/Monokai (SL).tmTheme",
	"draw_white_space": "all",
	"ensure_newline_at_eof_on_save": true,
	"find_selected_text": true,
	"font_size": 12.0,
	"ignored_packages":
	[
	],
	"indent_to_bracket": true,
	"rulers":
	[
		80
	],
	"shift_tab_unindent": true,
	"spell_check": true,
	"translate_tabs_to_spaces": true,
	"trim_trailing_white_space_on_save": true,
	"vintage_start_in_command_mode": true
}

User Keymap Settings

[
    // Exit insert mode with double j
    { "keys": ["j", "j"], "command": "exit_insert_mode",
        "context":
        [
            { "key": "setting.command_mode", "operand": false },
            { "key": "setting.is_widget", "operand": false }
        ]
    },
    // Support goto definition vim style (python)
    //{
    //    "keys": ["g", "d"],
    //    "command": "anaconda_goto",
    //    "context":
    //    [
    //        { "key": "selector", "operator": "equal", "operand": "source.python" },
    //        { "key": "setting.command_mode", "operand": true },
    //        { "key": "setting.is_widget", "operand": false }
    //    ]
    //},
    // Support goto next error in file (python)
    {
        "keys": ["g", "e"],
        "command": "anaconda_next_lint_error",
        "context":
        [
            { "key": "selector", "operator": "equal", "operand": "source.python" },
            { "key": "setting.command_mode", "operand": true },
            { "key": "setting.is_widget", "operand": false }
        ]
    },
    // Support goto definition vim style (CoffeeScript) - Not working in Sublime3
    {
        "keys": ["g", "d"],
        "command": "coffee_goto_definition",
        "context":
        [
            { "key": "selector", "operator": "equal", "operand": "source.coffee" },
            { "key": "setting.command_mode", "operand": true },
            { "key": "setting.is_widget", "operand": false }
        ]
    }
]

Anaconda User Settings

{
    "anaconda_gutter_marks": true,

    "pep8_ignore":
    [
        // comparison to True should be ‘if cond is True:’ or ‘if cond:’
        // Can't use is for SQLAlchemy statements.
        "E712",
    ],
}

Example Project Settings

{
	"folders":
	[
		{
			"follow_symlinks": true,
			"path": "my_path",
			"folder_exclude_patterns": [
				"doc/_build",
				"grunt_build",
			]
		},
		{
			"follow_symlinks": true,
			"path": "my_path_2"
		}
	],
	"settings": {
		"python_interpreter": "/Users/kyle/.virtualenvs/my_env/bin/python"
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment