Live data from Hacker News

Some things beginners might not know about Sublime Text

blog.alainmeier.com

91–100 of 116 posts

Re: Some things beginners might not know about Sublime Text

#91
post #83
post #59

Earlier quoted context omitted.

Sorry? My response was tailored for your comment -- you didn't mention plugins and you weren't (and still aren't) clear on the features you're missing. I.e., from your comment I inferred that you are new to all this, and so I treated you as a newcomer. I guess that hurt you feelings? If so, I didn't mean to :)

Nope, didn't hurt my feelings at all, I was trying to help you learn the ropes. My comment was really pretty clear, and easy to follow, ST doesn't have a code formatter, you know, like textmate and eclipse do. It's a feature that lets you take poorly aligned code that is difficult to read, and fix up the alignment a la K&R et al. Hope that's clear enough for you :) If you want to find out if someone is a newcomer, yo…

dr42, I'd say you are the one not responding in the spirit of HN. Just calm down, someone tried to help, and you didn't find it helpful, no need to go all flamewar on them.

Relax.

Re: Some things beginners might not know about Sublime Text

#92

Is it possible to do multi-line editing like Sublime Text but in Vim? I use both, and this was the feature that got me out of Terminal, but besides this I can't think of anything else offhand for what ST2 can do that Vim can't do.

I'm not sure exactly what you're looking for without knowing more what you mean by multi-line editing, but you can apply arbitrary commands (including inserts) to any set of lines.

Switches case on lines 4, 15:

:4,15 norm ~

Indents text and changes the first two words of ever line to "duck" from mark a to the end of the file

:'a,$ norm >>2cwduck

Prepends a # to every line of the visual selection

:' norm I#

Applies regex to lines that match a regex

:g/ducks/ s/moo/quack

Re: Some things beginners might not know about Sublime Text

#93
post #66

Earlier quoted context omitted.

Um, this is product for developers. I think that they should be able to handle a pretty simple copy/paste. Not sure the reason behind the drama queenery.

If it's worth doing, it's worth doing right. Respect others and they will respect your work.

This is a worthless, false platitude.

Re: Some things beginners might not know about Sublime Text

#94
post #72

You guys know that you can go to the Default Keymaps file and get all of these tips in one list right? You can even change them... EDIT: Just for fun, here is that file on OS X: https://gist.github.com/3117613 Notice the "context" definitions. Also check out how the auto-pairing functionality is defined in terms of the key binding DSL. And how you can define nonstandard layouts for the panes. And so on. Sublime is gr…

Thanks for that. Off topic: Safari on iPhone cuts off every line short at your link...I'm surprised by github!

They're not actually cut off, they're in a scrollable text area (use two fingers to scroll within that text area) same as on the desktop. Not very easy to use, but then the device does have a very low (virtual/apparent) resolution of 320x480.

Re: Some things beginners might not know about Sublime Text

#95
post #8

Also a must-have: Sublime Package Control http://wbond.net/sublime_packages/package_control Useful for installing things like themes, syntax awareness, code linters, etc...

Installation is through the Sublime Text 2 console. This is accessed via the ctrl+` shortcut. Once open, paste the following command into the console: import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.ur…

> Are you kidding me? The product or package maintainer should handle this better.

Man, you got that right. They should make it so that it can be installed through Package Control.

Oh, wait...

For a bootstrapping method, this seems completely reasonable. It doesn't involve downloading inscrutable single-platform installers, or opening a shell window, or any other external dependencies. The whole process runs inside the one environment you're guaranteed to have: Sublime Text itself.

Re: Some things beginners might not know about Sublime Text

#96
post #8

Also a must-have: Sublime Package Control http://wbond.net/sublime_packages/package_control Useful for installing things like themes, syntax awareness, code linters, etc...

Installation is through the Sublime Text 2 console. This is accessed via the ctrl+` shortcut. Once open, paste the following command into the console: import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.ur…

Your reaction is understandable but wrong. It's a ugly, horrific block of code that you copy/paste and never think of or see again. The package manager itself makes the installation and management of 3rd party packages incredibly easy. It's super impressive really.

Naturally people ask if the 3rd package manager will become an official feature but that opens up a new can of worms.

Re: Some things beginners might not know about Sublime Text

#97
post #66

Earlier quoted context omitted.

Um, this is product for developers. I think that they should be able to handle a pretty simple copy/paste. Not sure the reason behind the drama queenery.

If it's worth doing, it's worth doing right. Respect others and they will respect your work.

By doing right did you mean a nice CSS3 layout and HTML5 formated, with sprites and parallax moving piece of step by step install tutorial shit?

Re: Some things beginners might not know about Sublime Text

#99
post #83
post #59

Earlier quoted context omitted.

Sorry? My response was tailored for your comment -- you didn't mention plugins and you weren't (and still aren't) clear on the features you're missing. I.e., from your comment I inferred that you are new to all this, and so I treated you as a newcomer. I guess that hurt you feelings? If so, I didn't mean to :)

Nope, didn't hurt my feelings at all, I was trying to help you learn the ropes. My comment was really pretty clear, and easy to follow, ST doesn't have a code formatter, you know, like textmate and eclipse do. It's a feature that lets you take poorly aligned code that is difficult to read, and fix up the alignment a la K&R et al. Hope that's clear enough for you :) If you want to find out if someone is a newcomer, yo…

I agree with Volpe. It should also be noted that siodine has been a member longer so if anything, he's teaching you "the ropes".

Re: Some things beginners might not know about Sublime Text

#100
post #83
post #59

Earlier quoted context omitted.

Sorry? My response was tailored for your comment -- you didn't mention plugins and you weren't (and still aren't) clear on the features you're missing. I.e., from your comment I inferred that you are new to all this, and so I treated you as a newcomer. I guess that hurt you feelings? If so, I didn't mean to :)

Nope, didn't hurt my feelings at all, I was trying to help you learn the ropes. My comment was really pretty clear, and easy to follow, ST doesn't have a code formatter, you know, like textmate and eclipse do. It's a feature that lets you take poorly aligned code that is difficult to read, and fix up the alignment a la K&R et al. Hope that's clear enough for you :) If you want to find out if someone is a newcomer, yo…

[deleted]
Post reply on HN