Live data from Hacker News

Switching to Sublime Text from Vim in 2017

eduardobautista.com

11–20 of 71 posts

Re: Switching to Sublime Text from Vim in 2017

#11
post #2

Is VIM with plugins really that slow compared to Sublime Text? I'm curious what plugins OP was talking about.

Until vim 8, everything in vim ran in a single thread with little or no cooperative multitasking. So if you have a handful of plugins that do any non-trivial thing with the contents of a buffer in real time - dynamic syntax highlighting, running an external process or other such things - pretty soon those milliseconds add up and there is a visible delay between your typing and the on-screen cursor. Vim 8's background tasks were created precisely to deal with these sort of problems.

Re: Switching to Sublime Text from Vim in 2017

#12
I only have two comments:

> Any popular editor usually has a “Vim mode” that you can install and you can achieve native Vim productivity.

I would editorialize this to say "closish to native vim productivity", since there are virtually no vim mode plugins for popular editors which offer a complete set of vim features. Even EVIL mode (as of the last time I checked it) has a few notable discrepancies which arise from mapping Emacs functionality to vim keybindings.

> I’d rather do my part to ensure good desktop software will continue to exist, even if it’s proprietary. I will not use shitty software just because it’s open source.

Perhaps I'm just a troglodyte, but I agree with this sentiment heartily.

Re: Switching to Sublime Text from Vim in 2017

#13
post #7

I would agree with you, except I really do feel like NeoVim has fixed nearly every big problem I've had with Vim. There were definitely hackey things you had to do with regular Vim, but NeoVim adds a much better interface for plugins and lets you use whatever languages you'd like for making plugins...Not to mention that it has had proper async support for years now, much before regular Vim got it. Using NeoVim, I can…

Yes, NeoVim is definitely an improvement over regular Vim. Hopefully more people will begin to use NeoVim and make it the standard going forward.

[deleted]

Re: Switching to Sublime Text from Vim in 2017

#14
post #7

I would agree with you, except I really do feel like NeoVim has fixed nearly every big problem I've had with Vim. There were definitely hackey things you had to do with regular Vim, but NeoVim adds a much better interface for plugins and lets you use whatever languages you'd like for making plugins...Not to mention that it has had proper async support for years now, much before regular Vim got it. Using NeoVim, I can…

Yes, NeoVim is definitely an improvement over regular Vim. Hopefully more people will begin to use NeoVim and make it the standard going forward.

As an avid vim user I was trying to google and see reasons to use NeoVim and I couldn't find any except "built in terminal"

Any advice on why I should switch?

Re: Switching to Sublime Text from Vim in 2017

#16
post #7

I would agree with you, except I really do feel like NeoVim has fixed nearly every big problem I've had with Vim. There were definitely hackey things you had to do with regular Vim, but NeoVim adds a much better interface for plugins and lets you use whatever languages you'd like for making plugins...Not to mention that it has had proper async support for years now, much before regular Vim got it. Using NeoVim, I can…

Yes, NeoVim is definitely an improvement over regular Vim. Hopefully more people will begin to use NeoVim and make it the standard going forward.

Since the transition from regular vim to neovim isn't as simple as typing a different command (especially if you're invested in vim already), I doubt it will ever replace vim for most users.

For some users, the migration may be as easy as "move these files to these folders", but that's still a hurdle most people will say "why bother" with, especially since NeoVim doesn't offer anything that spectacular for users who don't write plugins.

Re: Switching to Sublime Text from Vim in 2017

#17

I only have two comments: > Any popular editor usually has a “Vim mode” that you can install and you can achieve native Vim productivity. I would editorialize this to say "closish to native vim productivity", since there are virtually no vim mode plugins for popular editors which offer a complete set of vim features. Even EVIL mode (as of the last time I checked it) has a few notable discrepancies which arise from ma…

> there are virtually no vim mode plugins for popular editors which offer a complete set of vim features

I'm aiming to change that: https://github.com/lunixbochs/ActualVim

NeoVim needs a bit more remote UI work to enable every Vim feature, but it's still very powerful to embed right now.

Re: Switching to Sublime Text from Vim in 2017

#18

I only have two comments: > Any popular editor usually has a “Vim mode” that you can install and you can achieve native Vim productivity. I would editorialize this to say "closish to native vim productivity", since there are virtually no vim mode plugins for popular editors which offer a complete set of vim features. Even EVIL mode (as of the last time I checked it) has a few notable discrepancies which arise from ma…

I think a lot of us can agree with the last bit, but that said VS Code is actually pretty darn nice.

Re: Switching to Sublime Text from Vim in 2017

#19

Earlier quoted context omitted.

Yes, NeoVim is definitely an improvement over regular Vim. Hopefully more people will begin to use NeoVim and make it the standard going forward.

As an avid vim user I was trying to google and see reasons to use NeoVim and I couldn't find any except "built in terminal" Any advice on why I should switch?

The tab-autocomplete when you hit the ":" key gives out written suggestions.

All the plugins you know and love with Vim should work, and you can write new plugins in virtually language.

New features tend to reach NeoVim faster than with regular Vim; most notably async support.

NeoVim used the XDG system for configs, so it doesn't pollute your home folder with a bunch of dotfiles.

And this might just be in my head, but I just feel like the entire system is a bit snappier and runs faster.

===== EDIT: ====

falcolas pointed out that I was mistaken on the first point:

> The tab-autocomplete when you hit the ":" key gives out written suggestions.

That appears to be in regular Vim.

Re: Switching to Sublime Text from Vim in 2017

#20
post #19

Earlier quoted context omitted.

As an avid vim user I was trying to google and see reasons to use NeoVim and I couldn't find any except "built in terminal" Any advice on why I should switch?

The tab-autocomplete when you hit the ":" key gives out written suggestions. All the plugins you know and love with Vim should work, and you can write new plugins in virtually language. New features tend to reach NeoVim faster than with regular Vim; most notably async support. NeoVim used the XDG system for configs, so it doesn't pollute your home folder with a bunch of dotfiles. And this might just be in my head, bu…

> The tab-autocomplete when you hit the ":" key gives out written suggestions.

Can you explain this a bit more - how does this differ from vim's tab completion for ex commands?

    :e ~/.vim^I
    .vim/     .viminfo  .vimrc

    :help ctrlp-
    'ctrlp-' ctrlp-options [...]
Post reply on HN