News for hackers. Stuff that matters.
Re:A Quick Guide to Sublime Text by lyinsteve on Monday April 14, 2014 @08:57AM (#7585830)
Sublime text is really nice, but I can't bring myself to ditching vim for Sublime, even with a nice, keyboard-shortcutted workflow.

Vim is just way too fast for me to leave.

Re:A Quick Guide to Sublime Text by Gracana on Monday April 14, 2014 @09:32AM (#7586005)
I'm in the same boat. ST has neat features, but I'm so comfortable with vim, and even if I switch to ST I will still end up using vim on remote machines. I've tried to make the switch, but it just seems to make my life more difficult.
Re:A Quick Guide to Sublime Text by ewood on Monday April 14, 2014 @02:51PM (#7588036)
I downloaded Sublime 2 yesterday and gave it a try. I'm a Vim user and I was just interested what else is around. I found it very slow on both OSX and Xubuntu, there are annoying things like the right click menu hanging sometimes, plugins slowing down the entire program, and the folder sidebar not updating when using SSHFS. The whole experience was just too inconsistent for me to drop Vim, even with Vintage mode and the extended plugin it was a poor substitute. I do really like Sublime's mini-map but I doubt that it is enough to get me to switch.
Re:A Quick Guide to Sublime Text by mkehrt on Monday April 14, 2014 @01:21PM (#7587484)
I find that CommandT (a vim package to emulate Sublime's cmd-t) and getting autocomplete working nicely gets me 95% of the Sublime features I cared about, so I moved back to vim about a month ago after eight months of Sublime.
Re:A Quick Guide to Sublime Text by apineda on Monday April 14, 2014 @02:09PM (#7587795)
How does autocomplete work in vim? I use vim all the time but have shied away from plugins. I feel they will confuse me and make it difficult to separate native functionality from plugin. With that being said, I also think it's time for me to bite the bullet.
Re:A Quick Guide to Sublime Text by EC1 on Monday April 14, 2014 @09:51AM (#7586098)
I've always hesitated on VIM because it seems like such a behemoth to learn. Do you have any resources/guides to using/setting up/customizing VIM?
Re:A Quick Guide to Sublime Text by adem on Monday April 14, 2014 @10:12AM (#7586234)
The only thing you need to read about Vim to get started is here: http://yannesposito.com/Scratch/en/blog/Learn-Vim-Progressiv..., the rest is learned pretty much by the following principle:

1. Detect inefficiency for a particular task 2. Find a faster way to do it 3. Make it a habit

You can learn more about this approach in this video:

https://www.youtube.com/watch?v=p6K4iIMlouI

Re:A Quick Guide to Sublime Text by jsissom on Monday April 14, 2014 @02:59PM (#7588074)
Those are the exact same steps it would take to learn to use Sublime Text!
Re:A Quick Guide to Sublime Text by aninhumer on Tuesday April 15, 2014 @03:03AM (#7590668)
Plus you already know half of it because it uses the same shortcuts as every other program in the world.
Re:A Quick Guide to Sublime Text by EC1 on Monday April 14, 2014 @11:20AM (#7586641)
Awesome thank you very much.
Re:A Quick Guide to Sublime Text by adem on Monday April 14, 2014 @06:10PM (#7589240)
Now if you really wanna get that extra motivation, I highly recommend you to watch this introduction by Derek Wyatt. For me, a few minutes into the video were enough to stick to all of his videos, truly amazing guy.

vimeo.com/6999927

I hope this is not too off-topic in a ST thread.

Re:A Quick Guide to Sublime Text by EC1 on Tuesday April 15, 2014 @10:40AM (#7592049)
I don't think so. I'll be watching anything you kind people linked me.
Re:A Quick Guide to Sublime Text by muraiki on Monday April 14, 2014 @11:26AM (#7586685)
I finally began to retain vim knowledge by using vim adventures, a browser-based game that teaches vim commands: http://vim-adventures.com
Re:A Quick Guide to Sublime Text by EC1 on Monday April 14, 2014 @01:31PM (#7587545)
This is exactly what I've been looking for!
Re:A Quick Guide to Sublime Text by woogley on Monday April 14, 2014 @10:42AM (#7586413)
Run `vimtutor` to whet your appetite, then use vim full-time and enjoy a brief 2 weeks of Googling things every time you get stuck.

Getting functional with vim takes only an afternoon.

Re:A Quick Guide to Sublime Text by EC1 on Monday April 14, 2014 @10:48AM (#7586436)
I've done vimtutor countless times and I still haven't retained any of it haha.
Re:A Quick Guide to Sublime Text by _dark_matter_ on Monday April 14, 2014 @11:03AM (#7586526)
I think in this case it's more dedication - getting over that initial "hump". Probably worth it; at least for the experience of doing it once.
Re:A Quick Guide to Sublime Text by jbeja on Monday April 14, 2014 @10:25AM (#7586315)
Same here, try and configured sublime text 3 to my liking but never give me a good reason to leave vim.
Re:A Quick Guide to Sublime Text by kzisme on Monday April 14, 2014 @09:30AM (#7585985)
How much of a speed difference is It say, going from vim to ST?
Re:A Quick Guide to Sublime Text by atom-morgan on Monday April 14, 2014 @08:59AM (#7585842)
Have you ever tried Vim mode in ST?
Re:A Quick Guide to Sublime Text by aninhumer on Monday April 14, 2014 @09:22AM (#7585945)
Vintage mode pretty much sucks for any proficient vim user. It implements only a fraction of the commands, and doesn't integrate properly with ST's features. The most obvious flaw for me was that insert mode doesn't record any text generated by ST's completion, so if you try to repeat the action, you get the gibberish you actually typed.

Don't get me wrong. I love ST, and Vintage mode was what convinced me to try it. But ultimately it was far more frustrating to have only half of my muscle memory work in Vintage than it was to just learn the ST way.

Re:A Quick Guide to Sublime Text by atom-morgan on Monday April 14, 2014 @11:38AM (#7586766)
TBH, I agree with everything you said but was hoping that maybe you could convince me otherwise. I guess not. It seems everyone hates ST's vim mode.
Re:A Quick Guide to Sublime Text by jbeja on Monday April 14, 2014 @10:28AM (#7586329)
It sucks, and Vintageous the new implementation have so many bugs and is pretty much unusable from the first install, also it take some time to load every time i start sublime text.
Re:A Quick Guide to Sublime Text by doktrin on Monday April 14, 2014 @10:31AM (#7586352)
I stopped using Vintageous as soon as I found myself unable to alias 'jj' to 'esc'.
Re:A Quick Guide to Sublime Text by hornbaker on Monday April 14, 2014 @02:29PM (#7587908)
This ('kj') works great for me in User Keybindings with ST3 and Vintageous:

  { "keys": ["k", "j"], "command": "_enter_normal_mode", "args": {"mode": "mode_insert"}, "context": [{"key": "vi_insert_mode_aware"}] }
I was a heavy VIM user prior to making the switch to ST2 and then ST3, and haven't really found any vim blockers with ST3/Vintageous.
Re:A Quick Guide to Sublime Text by nuclear_eclipse on Monday April 14, 2014 @06:54PM (#7589379)
Re:A Quick Guide to Sublime Text by piratebroadcast on Monday April 14, 2014 @04:16PM (#7588590)
I use Sublime but I have vim envy; Most of the folks I work with use tmux and vim and using sublime makes me feel like a wannabe.
Re:A Quick Guide to Sublime Text by zenbowman on Monday April 14, 2014 @08:29PM (#7589696)
Why would you envy vim users?

Larry Tesler would cry if he knew of this strange vim-obsession that has been creeping up all over the interwebz.

I use Emacs and IntelliJ, both modeless editors, and I've never understood the obsession with vim, but I'll be happy if someone could enlighten me.

Re:A Quick Guide to Sublime Text by oddthink on Monday April 14, 2014 @09:59PM (#7589933)
Well, in emacs you can try out evil-mode, which will get you the basic vim commands. I flip back and forth between the two: the vim commands are great when I'm focused on a single document, usually a hunk of code, and just have to make some something happen. On the other hand, if I'm flipping between editing a latex write-up, recording progress in org-mode, moving files around in dired, flipping between two different interpreters and several shells, the web browser, database query front-end, etc., then I start to get annoyed by the modes and prefer the flow I can get by not having to worry about editor state.

Right now I'm mostly using modeless interactions, but every now and then it feels good to get the vim muscles moving.

Re:A Quick Guide to Sublime Text by leetNightshade on Monday April 14, 2014 @08:44PM (#7589731)
Don't be too envious, Sublime Text is a decent platform. Easy to install plugins on the fly from inside the editor, reloads settings on the fly, and you have a Vim (vintage) mode so you can enjoy the awesomeness that is Vim AND Sublime.
Re:A Quick Guide to Sublime Text by KurtMueller on Monday April 14, 2014 @04:32PM (#7588703)
I use Sublime with vim mode turned on. Vim mode is more like 'vim lite' but I'm fine with it.
Re:A Quick Guide to Sublime Text by est on Tuesday April 15, 2014 @12:33AM (#7590313)
Only reason to use console based editor is ssh or tmux.

Even gvim can't get along with tmux

Re:A Quick Guide to Sublime Text by ironlady on Tuesday April 15, 2014 @09:47PM (#7595546)
I've never had a issue with tmux and vim. What are you talking about?
Re:A Quick Guide to Sublime Text by skrowl on Monday April 14, 2014 @10:48AM (#7586437)
If you're at all interested in sublime, you owe it to yourself to check out http://brackets.io/.
Re:A Quick Guide to Sublime Text by iamtew on Monday April 14, 2014 @11:00AM (#7586515)
It's indeed a nice editor, but one main issue I have with it is that it doesn't detect the language of the file based on content, but solely on the file extension.

When working on websites you have your files like .js .html .css .php etc etc, but when working on system tools and scripts, a lot of these files lack the file extension and instead just defines the #! at the top of the file.

It doesn't even seem to be a way to manually specify that my file is of X language in the editor. According to the devs on their IRC channel, a feature like this isn't on the roadmap any time soon.

It's very unfortunate, but without this feature it's more hassle for me to work with it than with ST, or Vim.

Re:A Quick Guide to Sublime Text by bulatb on Monday April 14, 2014 @04:55PM (#7588870)
Ctrl+Shift+P and type a language name to set it manually.
Re:A Quick Guide to Sublime Text by kyrra on Monday April 14, 2014 @11:01AM (#7586517)
Brackets is great if you are doing HTML/CSS/JS. But if you are doing other languages or using it as a normal text editor, Sublime Text is much more flexible and powerful. ST also handles large files better than Brackets.io or Atom.io as both of those use Chromium/Webkit as their editor.
Re:A Quick Guide to Sublime Text by ozh on Monday April 14, 2014 @08:58AM (#7585834)
I so badly want to use ST, but I need a sidebar with a function list like several editors & IDE can generate (yeah, I know fuzzy search, no, it's not what I need).

Seriously, if anyone with enough python-foo wants to code this, I'm sending cash their way.

Re:A Quick Guide to Sublime Text by epsylon on Monday April 14, 2014 @09:02AM (#7585853)
Which language are you using? Text editors like ST usually rely on third party tools like ctags to do the indexing (which is the hard part).
Re:A Quick Guide to Sublime Text by roryokane on Monday April 14, 2014 @11:53AM (#7586888)
In fact, there seems to already be a Sublime Text plugin that uses ctags to offer a function list: https://github.com/SublimeText/CTags. It apparently shows the tags in the file tree instead of in a separate pane, which some people may not prefer. But it sounds like basically what ozh wants.
Re:A Quick Guide to Sublime Text by ozh on Monday April 14, 2014 @03:05PM (#7588116)
Files are correctly parsed, .tag files are correctly generated, but for the life of me I cannot display anything anywhere.

Edit: although the "navigate to definition" feature is quite neat

Re:A Quick Guide to Sublime Text by rmccue on Monday April 14, 2014 @09:10AM (#7585896)
SublimeCodeIntel (mostly) works: https://github.com/SublimeCodeIntel/SublimeCodeIntel

I use it every day, and the only real issue for me is that occasionally the built-in suggestions override CodeIntel's, which is kind of annoying.

Re:A Quick Guide to Sublime Text by ozh on Monday April 14, 2014 @10:05AM (#7586186)
That's not what I need. I'm used to having a list of all functions / declaration in the current file, always visible, and I just can't live without it.
Re:A Quick Guide to Sublime Text by m_mueller on Monday April 14, 2014 @04:20PM (#7588614)
For functions there's cmd-R. Declarations I'm not sure though, I think this would need a language specific plugin.

One thing though, cmd-R doesn't work very well with closures, it gets a bit messy - the good thing is that you can just start typing words you know from the function's name and it will list anything relevant.

Re:A Quick Guide to Sublime Text by Denzel on Monday April 14, 2014 @11:11AM (#7586568)
Could you provide a link to a screenshot/example of what you're talking about. I understand the gist of what you're describing; I believe I've been looking for the same thing.
Re:A Quick Guide to Sublime Text by roryokane on Monday April 14, 2014 @11:44AM (#7586825)
The Vim plugin Tagbar matches ozh’s description. The Tagbar site has some screenshots: http://majutsushi.github.io/tagbar/.

An equivalent plugin would be harder to implement in Sublime Text, because Vim has identification of “tags” (function/class names) built-in, and the Tagbar plugin just displays them. I don’t think Sublime Text’s syntax highlighting rules do any equivalent thing. So a Tagbar-like plugin might need to parse the code itself to identify tags.

Re:A Quick Guide to Sublime Text by ozh on Monday April 14, 2014 @12:20PM (#7587050)
I'm used to something like this: http://i.imgur.com/gAQhd.png and I have a very hard time not using it (function list on the right). When hovering a function you also get a hint on parameters.
Re:A Quick Guide to Sublime Text by mixmastamyk on Monday April 14, 2014 @06:11PM (#7589249)
Re:A Quick Guide to Sublime Text by scald on Monday April 14, 2014 @10:01AM (#7586157)
I'm a big fan of the sublime-grunt packages ... http://crosstek.net/2014/03/03/building-projects-with-grunt-...
Re:A Quick Guide to Sublime Text by Zarel on Monday April 14, 2014 @02:18PM (#7587846)
Referring to Cmd as Super is sort of unnecessary when most of the shortcuts in question are specific to OS X and don't work on the other platforms with a Super key...
Re:A Quick Guide to Sublime Text by LanceH on Monday April 14, 2014 @11:12AM (#7586574)
Is Sublime still being updated?
Re:A Quick Guide to Sublime Text by kyrra on Monday April 14, 2014 @11:58AM (#7586917)
From the ST forums:

http://www.sublimetext.com/forum/viewtopic.php?f=2&t=15477&h...

=============

From the Sublime office: We are not selling to Github, we are not stopping development of Sublime. As noted by another poster, this is effectively a one man band (I'm here to answer sales questions, process your refunds and get the mail so Jon doesn't have to). The past few months of silence on the development front have been a combination of boring back end work (taxes, new payment platform) as well as a break for the man driving this whole operation. No, we don't currently have a loud internet presence, which is can be an understandable cause for concern-something we intend to address once we move into the production version of 3. There is a vision for continued growth and development, there is momentum behind Sublime Text; it is not dead, just slow.

=============

Re:A Quick Guide to Sublime Text by orkoden on Monday April 14, 2014 @11:55AM (#7586899)
They are working on the next version.
Re:A Quick Guide to Sublime Text by adem on Monday April 14, 2014 @09:27AM (#7585971)
Thanks for the ShortcutFoo tip!