Live data from Hacker News

Configuring Sublime Text 2

mutuallyhuman.com

51–60 of 92 posts

Re: Configuring Sublime Text 2

#53
post #21

Earlier quoted context omitted.

On OS X, they appear to do the same thing. On Windows, ctrl-t doesn't seem to do anything. I don't have Sublime set up on Linux so I can test there. I suspect the author has an older configuration since he's been using it for almost 2 years, and that the keybinding probably changed since then to cmd-p.

IIRC, ⌘P was Sublime's original mapping, and then ⌘T was added on Mac because the then-extremely-popular TextMate had a well-known ⌘T function that was similar.

And the famous CommandT plugin for vim inspired from Textmate.

Re: Configuring Sublime Text 2

#55

Earlier quoted context omitted.

Nitpick: the trailing 'l' has always seems superfluous to me - my alias is 'sub'

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"
    }

Re: Configuring Sublime Text 2

#56

Here are two other sources that I found pretty useful when switching to Sublime. http://net.tutsplus.com/tutorials/tools-and-tips/essential-s... I'm not a huge fan of video sources when I could just look at images/read text and get it done faster, but these do offer some pretty good stuff. I was fond of him giving me the idea to use the Gist plugin, creating a new account, and have a great way to manage snippets. htt…

This (free) video walkthrough is a terrific resource, and with no disrespect to the OP, is a better resource regarding getting the most out of ST2.

Re: Configuring Sublime Text 2

#58
post #28
post #3

My first piece of advice is to set up a command line alias for Sublime... Sublime ships w/ a command-line executable: /usr/bin/subl

This hasn't been working for me for some reason on OSX, the posted alternative however did work so I'm quite excited!

On OSX I just use the built-in 'open -t', which works so long as Sublime Text is configured to open .txt files.

Re: Configuring Sublime Text 2

#60
post #38
post #22

As a python programmer, these were the first two settings I configured after installing Sublime Text. "tab_size": 2, "translate_tabs_to_spaces": true You can either set them as Preferences > Settings - Default or Settings - Syntax specific

Uh, two space indentation in Python? Consistency is valuable. Everyone else who writes Python uses four spaces. http://www.python.org/dev/peps/pep-0008/#indentation

I got comfortable with 2 spaces over 4-space tab since it was the accepted coding standard for Ruby at my previous job. The habit carried over to Python and I now find it more succinct and clear.
Post reply on HN