Live data from Hacker News

Setting up Sublime Text 2

blog.alexmaccaw.com

131–140 of 141 posts

Re: Setting up Sublime Text 2

#131
post #114

Earlier quoted context omitted.

(defun full-screen () "Indicate to the window manager that this frame should be full screen" (interactive) (x-send-client-message nil 0 nil "_NET_WM_STATE" 32 '(2 "_NET_WM_STATE_FULLSCREEN" 0)))

That removes the borders? Any way, Unix only...

http://tomayko.com/writings/that-dilbert-cartoon

Re: Setting up Sublime Text 2

#132
post #115

Earlier quoted context omitted.

Vintage mode (which comes with ST) supports most common vim commands and either way there's plugins for most things and you can write your own for pretty much anything at all.

This is still a very small subset. If you are a moderately advanced Vim user, neither Vintage nor VintageEX are enough, I'm afraid.

Anything that isn't built in you can add yourself...

Re: Setting up Sublime Text 2

#133
post #105

Earlier quoted context omitted.

By toggle do you mean change whether it reloads it?

Basically, yes, but with a prompt. Notepad++ will prompt you that a loaded file has changed and do you want to update it. ST2 will just load the file as soon as it realizes the file has changed. The NP++ behaviour is ideal and a feature I use a lot. Unless something has changed very recently in ST2, there is no way to duplicate this behaviour. I believe there are some circumstances where ST2 will prompt you. IIRC if…

It only reloads if you haven't made any changes to the file and you can disable it with plugins

Re: Setting up Sublime Text 2

#134
post #126

What's the easiest way to keep my Sublime configuration synchronized between machines? I've found that I sometimes have some plugins on one machine, and not another. It would be nice to be able to pull some file/files from GIT or something to keep configuration synced.

Maybe SugarSync at this point.

Re: Setting up Sublime Text 2

#135

Earlier quoted context omitted.

How is the buy-the-beta-then-there-is-a-new-version-immediately-you-need-to-pay-for-again reasonable licensing?

As someone who purchased Sublime Text 2 over a year ago, I'll have to pay a $30 upgrade fee. Someone who purchases v2 now (or any time after the announcement of v3) will get the upgrade free. Anyone who purchased v2 in the 90-day period before v3 was announced will be able to upgrade for only $11. This doesn't strike me as wildly unreasonable.

To me this is unreasonable when there is no progress on a bought version.

Re: Setting up Sublime Text 2

#136
post #132

Earlier quoted context omitted.

This is still a very small subset. If you are a moderately advanced Vim user, neither Vintage nor VintageEX are enough, I'm afraid.

Anything that isn't built in you can add yourself...

Versus having it built-in in my current editor?

Re: Setting up Sublime Text 2

#137

Earlier quoted context omitted.

My bash-fu isn't great, can you point me at an example of a script which does this (yours or someone else's)? I was literally thinking about moving my ST2 config into my dotfiles repo the other day

I actually use a bit of python to do this, but I've dropped that and my .gitignore into a gist. Enjoy! https://gist.github.com/jreese/5356501

Much appreciated.

Re: Setting up Sublime Text 2

#138
post #17

Earlier quoted context omitted.

Yeah, I didn't understand this either. "Sublime's initial look leaves a lot to be desired." Really? I think it looks great. Here's another post that calls Sublime's default theme "pretty ugly" and "god-awful": http://floatleft.com/notebook/making-sublime-text-2-beautifu...

I love the icon. I don't have an opinion about the default theme except to say that part of the whole point of Sublime (to me) is to find a custom color theme for your code. It's like css for your workspace! I use a modified Cobalt that has much more green in it. Honestly I love that Sublime allows you to fulfill that urge to express yourself while you're expressing yourself (yo dawg etc.).

[deleted]

Re: Setting up Sublime Text 2

#139

The TrailingSpaces plugin isn't necessary. ST2 has an option in the default preferences to trim whitespace at the end of the line - just enable it. Not to come down too hard on the article or anything, but there are many other, far better resources for setting up and learning how to be productive in ST2. This book is good https://leanpub.com/sublime-productivity (I have no affiliation with the book.)

That's all fine and good until you're using JADE: h1 | We build span.colored-text scalable | web sites & engineer span.colored-text powerful | platforms If you delete trailing spaces, you'll have no spaces between any word at the end of the line and the word in the next section. Point being: trailing spaces can be significant.

So throw a nbsp; in front of the text in your span.colored-text Jade?

Re: Setting up Sublime Text 2

#140
post #126

What's the easiest way to keep my Sublime configuration synchronized between machines? I've found that I sometimes have some plugins on one machine, and not another. It would be nice to be able to pull some file/files from GIT or something to keep configuration synced.

I recommend this approach to sync config files over Dropbox to get exactly the same editing environment from Win, Mac, and Linux:

1) move the /User folder under "Sublime Text 2/Packages" over to Dropbox/ST2/User

2) in Win goto CMD and from the %APPDATA%\Sublime Text 2\Packages folder enter: mklink /D "User" "path to\My Dropbox\ST2\User"

3) in Mac OSX/Linux goto the Packages folder (you can find the location under >Preferences>Browse Preferences) and enter: ln -s pathto/Dropbox/Sublime\ Text\ 2/User ./User

The fantastic thing with this setup is that in any new machines, Package Control will automatically take care of installing any missing plugins.

Post reply on HN