Live data from Hacker News

Setting up Sublime Text 2

blog.alexmaccaw.com

121–130 of 141 posts

Re: Setting up Sublime Text 2

#121
> The default website, icon, and theme are ugly to say the least

I find the default icon better looking than the one the author is using, so I guess this is just a matter of taste. Same goes with the color scheme.

Re: Setting up Sublime Text 2

#122
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…

I, on the other hand, think that the ST behavior is ideal and Notepad++ is full of unneeded dialog boxes.

My favorite example is to use Zen Coding in both.

Re: Setting up Sublime Text 2

#123
post #90

I do most of my editing on remote machines (both at work and at home) and haven't really been able to find a setup that works smoothly for this. Is everyone else developing everything on their local machines?

Yes, most of us use git.

Re: Setting up Sublime Text 2

#124

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.

Re: Setting up Sublime Text 2

#125
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…

You could undo the reload.

Re: Setting up Sublime Text 2

#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.

Re: Setting up Sublime Text 2

#128
post #115

Get me block level (vit, cit ...) commands in ST2 and I will switch. They are done very well in Vim.

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.

Re: Setting up Sublime Text 2

#129

Earlier quoted context omitted.

(describe-key (kbd " ")) is undefined

Only on OSX maybe? It works perfectly on Windows, not sure about Linux as I'm too lazy to reboot and test right now. Perhaps someone else can check?

Did you use emacs starter kit? Because that binds fullscreen to F11.

It is unbound on linux as well (emacs24)

Re: Setting up Sublime Text 2

#130

Earlier quoted context omitted.

Sorry, I keep that whole plugin as part of my dotfile repo. When the plugin upgrades itself, I just commit that upgrade. When I install my dotfile repo on a new machine, I have a script that symlinks everything to the repo, including my ST2 data. I then have my .gitignore set up to ignore all the plugins that get installed, but specifically track changes to the package manager plugin, as well as any other custom plug…

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

Post reply on HN