Live data from Hacker News

Configuring Sublime Text 2

mutuallyhuman.com

71–80 of 92 posts

Re: Configuring Sublime Text 2

#72
I've been tweaking my Sublime for 5 months or so, and this is how my config file looks so far.

    "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
    "detect_indentation": false,
    "detect_slow_plugins": false,
    "font_size": 10,
    "highlight_line": true,
    "highlight_modified_tabs": true,
    "margin": 0,
    "move_to_limit_on_up_down": true,
    "remember_open_files": false,
    "shift_tab_unindent": true,
    "tab_completion": false,
    "tab_size": 4,
    "translate_tabs_to_spaces": false,
    "word_wrap": false
I'd suggest going through the default settings file to see what options there are to change. It's pretty darn configurable.

I'd also like to suggest the plugins Bracket Highlighter and Emmet (previously Zen Coding). I also use Package Manager, Sublime Linter, and FileDiffs as mentioned in the article.

Re: Configuring Sublime Text 2

#73

Always wondering why the version '2' is emphasised heavily. Never heard of Sublime Text when it is version 1. The version number is part of the app binary file name. It is the only OS X app in my Mac that has the app name together with version number on the menu bar. Nothing wrong with this "unconventional", just that it will break a little thing when Sublime Text 3 is released. For example to change command prompt l…

I suspect people emphasize it because the author does. Version 2 is a radically different piece of software from version 1, and I believe that during the alpha/beta development period you could run ST1/2 concurrently if you liked. This may be the reason why the folder name embeds the version number.

Re: Configuring Sublime Text 2

#74

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?

Maybe you should, you know, download Sublime and try it out? The settings are stored similarly to Vim.

So kind of you to assume that I haven't used it. I use it on Windows and after I formatted my Window 7 and am now on Windows 8, I don't have my Sublime text preferences with me and was wondering how people are versioning and syncing theirs. In vim ( which I don't claim to be an expert user), every setting is in .vimrc. Including the vundler bundles. Now, I have to reinstall all the plugins from Package Control. How do I version the settings? Get a list of installed plugins? Those were my questions, after having used Sublime for a few months now.

Re: Configuring Sublime Text 2

#75
post #65

Earlier quoted context omitted.

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.

Any reasonable editor can be configured to jump multiple spaces at a time.

Re: Configuring Sublime Text 2

#76

Something the article misses: Sublime Text 2 already comes with a command line front end called "subl". Just copy it in your favorite bin/ directory and you can open your files with it from any shell.

Even better: use a symlink.

You won't have to copy each update.

    ln -s target link
thus:

    sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl

Re: Configuring Sublime Text 2

#77

Earlier quoted context omitted.

Maybe you should, you know, download Sublime and try it out? The settings are stored similarly to Vim.

So kind of you to assume that I haven't used it. I use it on Windows and after I formatted my Window 7 and am now on Windows 8, I don't have my Sublime text preferences with me and was wondering how people are versioning and syncing theirs. In vim ( which I don't claim to be an expert user), every setting is in .vimrc. Including the vundler bundles. Now, I have to reinstall all the plugins from Package Control. How d…

Not sure the path for windows, but on OS X you could make a repository at ~/Library/Application Support/Sublime Text 2/Packages. It doesn't separate out system packages (basically all your language info/syntax highlight settings), but all your user-installed packages go there and user settings are in Packages/User. If you cloned that folder into a fresh install, it should bring everything you had previously along with it.

Re: Configuring Sublime Text 2

#78
post #52

The hardest part of configuring Sublime Text is the color scheme. It's written in some apple XML format that's hard to edit by hand.

Maybe you will like this https://github.com/vinhnx/Ciapre.tmTheme

I really like this theme. Looks best on Ubuntu. :-) https://github.com/buymeasoda/soda-theme

Re: Configuring Sublime Text 2

#79
This post reminded me that 90% of the developers I work with don't set their editor up properly. I'm constantly finding Windows line endings and trailing whitespace. I wrote this (really short) guide that I send to new developers, but imo editors should come configured like this out of the box. http://wildlyinaccurate.com/setting-up-your-editor

Re: Configuring Sublime Text 2

#80

I've been tweaking my Sublime for 5 months or so, and this is how my config file looks so far. "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", "detect_indentation": false, "detect_slow_plugins": false, "font_size": 10, "highlight_line": true, "highlight_modified_tabs": true, "margin": 0, "move_to_limit_on_up_down": true, "remember_open_files": false, "shift_tab_unindent": true, "tab_completion": fa…

This is just my opinion, but I think detect_indentation should always be turned on. The reason being that having mixed indentation in a file is worse than having the "wrong" indentation.
Post reply on HN