Live data from Hacker News

Vintageous: Vim emulation for Sublime Text 3

guillermooo.bitbucket.org

11–20 of 45 posts

Re: Vintageous: Vim emulation for Sublime Text 3

#11
post #3

For the vim -> Sumblime switchers out there on HN, what caused you to switch? I use vim exclusively but I'm not a religious zealot about technology. I've noticed all my students are using Sublime these days. Is it just the latest TextMate (i.e., the best GUI option if you don't like command-line editors) or are there truly features that will convert command-line folks to the GUI? I'm really hoping for an editor like…

The thing that really makes it stand out is the multiple cursors. You can go very deep with them because everything that happens in the editor happens in parallel for each cursor. They each have their own clipboard, any scripts you run happen once per cursor. "Find all" can be made to select all the matches. You can do some crazy stuff. I love it.

However, if you've customised and become proficient in vim to any serious extent it likely won't be that impressive to you.

Re: Vintageous: Vim emulation for Sublime Text 3

#13
post #9

As someone who just started another attempt at picking up vim (actually vintageous in this case) last week: how do I keep myself from forgetting that I'm in a vim editor? It'll happen every so often that I'm in the middle of something, switch to Sublime and just start typing - as it's second nature. By the time I notice whats going on, I typed half a dozen characters. I'll curse, undo the random commands, get into in…

> how do I keep myself from forgetting that I'm in a vim editor

I think actually using vim would help...

Edit: Sorry, that's a bit snarky. All I can say is that vim proficiency comes from muscle memory. Once you adopt vim and feel the "vim flow," it's really quite painful/distracting to use a modeless editor.

It's to the point where I was doing a phone interview recently where they had me code in a live editor. Because I'm so used to vim I had a really hard time just writing the code without a bunch of random-looking keystrokes. Fortunately the person on the other end recognized them as vim commands, but it was still distracting.

Re: Vintageous: Vim emulation for Sublime Text 3

#15

Am I missing something here? Sublime's an editor last I checked. So's vim. If you want a vim-flavored editor, why not just, I dunno... use vim? Wouldn't this be a bit like building a 'vim mode' for emacs?

...which is something people have done [1]. The goal of these extensions is usually to have the best of both worlds. E.g. block selections in an editor you can script with elisp.

[1] http://www.emacswiki.org/emacs/Evil

Re: Vintageous: Vim emulation for Sublime Text 3

#16
post #9

As someone who just started another attempt at picking up vim (actually vintageous in this case) last week: how do I keep myself from forgetting that I'm in a vim editor? It'll happen every so often that I'm in the middle of something, switch to Sublime and just start typing - as it's second nature. By the time I notice whats going on, I typed half a dozen characters. I'll curse, undo the random commands, get into in…

> how do I keep myself from forgetting that I'm in a vim editor I think actually using vim would help... Edit: Sorry, that's a bit snarky. All I can say is that vim proficiency comes from muscle memory. Once you adopt vim and feel the "vim flow," it's really quite painful/distracting to use a modeless editor. It's to the point where I was doing a phone interview recently where they had me code in a live editor. Becau…

I have no problem with you being frank.

My goal is to become more efficient at editing files, the typing/changing/refactoring part especially. I don't want a new way of opening/saving/handling files, search/replace, version control or debugging - it would just be too much to learn all at once.

So I thought Vintageous would be a great opportunity for me to learn the text editing part of vim without burning down my ecosystem. You're right, it's probably part of what leads to my confusion. Still, I thought I'd ask, maybe someone took the same route and managed it somehow.

Re: Vintageous: Vim emulation for Sublime Text 3

#17
post #9

As someone who just started another attempt at picking up vim (actually vintageous in this case) last week: how do I keep myself from forgetting that I'm in a vim editor? It'll happen every so often that I'm in the middle of something, switch to Sublime and just start typing - as it's second nature. By the time I notice whats going on, I typed half a dozen characters. I'll curse, undo the random commands, get into in…

I think vintage and vintageous can be configured to be in insert mode or in command mode by default. (I prefer command mode, but I think you might prefer insert mode -- as then you could just start typing.)

Re: Vintageous: Vim emulation for Sublime Text 3

#18
post #16

Earlier quoted context omitted.

> how do I keep myself from forgetting that I'm in a vim editor I think actually using vim would help... Edit: Sorry, that's a bit snarky. All I can say is that vim proficiency comes from muscle memory. Once you adopt vim and feel the "vim flow," it's really quite painful/distracting to use a modeless editor. It's to the point where I was doing a phone interview recently where they had me code in a live editor. Becau…

I have no problem with you being frank. My goal is to become more efficient at editing files, the typing/changing/refactoring part especially. I don't want a new way of opening/saving/handling files, search/replace, version control or debugging - it would just be too much to learn all at once. So I thought Vintageous would be a great opportunity for me to learn the text editing part of vim without burning down my eco…

If you don't mind me being frank, it's really not that much to learn.

Opening? :e [filename]

Saving? :w [filename]

Handling? be more specific?

Search? /term

Find next: n

Find previous: N

Find word under cursor: *

Replace all instances? :%s/term to find/new term/g

Replace all instances on line: :s/term to find/new term/g

Replace first instance on line: :s/term to find/new term

Version control? Why do you want version control in your editor? Either way, take a look at fugitive if you must, but using the command line is better...

All of that's starting in command mode, of course.

Finally, take a look at the vim videos on http://destroyallsoftware.com - they're what got me to say "yeah, I need to spend some time on this..."

Re: Vintageous: Vim emulation for Sublime Text 3

#19
post #16

Earlier quoted context omitted.

I have no problem with you being frank. My goal is to become more efficient at editing files, the typing/changing/refactoring part especially. I don't want a new way of opening/saving/handling files, search/replace, version control or debugging - it would just be too much to learn all at once. So I thought Vintageous would be a great opportunity for me to learn the text editing part of vim without burning down my eco…

If you don't mind me being frank, it's really not that much to learn. Opening? :e [filename] Saving? :w [filename] Handling? be more specific? Search? /term Find next: n Find previous: N Find word under cursor: * Replace all instances? :%s/term to find/new term/g Replace all instances on line: :s/term to find/new term/g Replace first instance on line: :s/term to find/new term Version control? Why do you want version…

For each of these actions there's not much to learn, but it piles up, and my whole development process grinds to a halt if I have to look up yet another thing.

With handling I meant stuff like syntax coloring, tab completion, tabbed views, side-by-side views, line lengths that adapt to the Terminal windows' width - the small things.

Thanks for the list of commands, maybe it'll push me over the edge to do the right thing. Destroy All Software looks interesting, but that's quite a lot of money.

Re: Vintageous: Vim emulation for Sublime Text 3

#20

Am I missing something here? Sublime's an editor last I checked. So's vim. If you want a vim-flavored editor, why not just, I dunno... use vim? Wouldn't this be a bit like building a 'vim mode' for emacs?

Vim's modes are quite powerful and easy to get used to.

To some extent it is probably people not learning their new editor completely and another part is sometimes the vim-way is just easier/quicker.

Being able to escape insert mode and start modifying the text is great to a vim user things like editing inside quotes `ci"` are easy to do without a mouse, as is moving around the file without leaving home row.

Post reply on HN