Live data from Hacker News

Configuring Sublime Text 2

mutuallyhuman.com

61–70 of 92 posts

Re: Configuring Sublime Text 2

#61

Earlier quoted context omitted.

the trailing 'ubl' has always seemed excessive to me: alias s='subl'

If you find the "s" too much to type... and the "ubl"... and the space... Voila! command_not_found_handle() { [[ -e "$1" ]] && subl "$1" }

I just hooked my shell to my frontal lobe. I find aliases to be restricting.

Re: Configuring Sublime Text 2

#62
post #30

> "trim_trailing_white_space_on_save": true, # trims trailing whitespace bad for Markdown, as it will delete spaces that are needed for newline, I believe.

Yep, so if you put this on, make sure you override it back in the Markdown-specific settings.

Re: Configuring Sublime Text 2

#64
I set Ctrl-Tab and Ctrl-Shift-Tab to behave like they do in web browsers and notepad++:

    [
        { "keys": ["ctrl+tab"], "command": "next_view" },
        { "keys": ["ctrl+shift+tab"], "command": "prev_view"}
    ]

Re: Configuring Sublime Text 2

#65
post #40

Earlier quoted context omitted.

This is a great reason to use tabs over spaces.

That everybody else uses spaces?

If the file uses tabs, at least you can choose to display the indentations as 2 spaces or 4 spaces.

If the file uses spaces, you don't get to choose.

Re: Configuring Sublime Text 2

#67

What I need to know is how are people versioning the settings? For Vim, a simple .vimrc is all I need to take care of. What do people do for Sublime?

Same way. The user settings are stored in a few plain-text JSON files.

Also I would hardly call .vimrc files "simple".

Re: Configuring Sublime Text 2

#68

What I need to know is how are people versioning the settings? For Vim, a simple .vimrc is all I need to take care of. What do people do for Sublime?

You would version the Preferences / Settings - User file, which overrides defaults in the Preferences / Settings - Default. I found a decent overview of how to store these in drop box with symlinks, but also describes where these are stored - http://wheels.onebuttonapps.net/2012/04/use-dropbox-to-store...

Re: Configuring Sublime Text 2

#69

What I need to know is how are people versioning the settings? For Vim, a simple .vimrc is all I need to take care of. What do people do for Sublime?

You would version the Preferences / Settings - User file, which overrides defaults in the Preferences / Settings - Default. I found a decent overview of how to store these in drop box with symlinks, but also describes where these are stored - http://wheels.onebuttonapps.net/2012/04/use-dropbox-to-store...

[deleted]

Re: Configuring Sublime Text 2

#70
post #65

Earlier quoted context omitted.

That everybody else uses spaces?

If the file uses tabs, at least you can choose to display the indentations as 2 spaces or 4 spaces. If the file uses spaces, you don't get to choose.

This is my reason for preferring tabs. Plus changing indent levels is faster via arrow keys.
Post reply on HN