Live data from Hacker News

Actualvim – Sublime Text 3 input mode powered by Vim itself

github.com

11–20 of 112 posts

Re: Actualvim – Sublime Text 3 input mode powered by Vim itself

#11
post #2

This makes me want to ask... why not just use vim?

The main reason (for me) is Ctrl+P. Working on a project with lots of files (like Rails) without that is a huge pain.

Not only does Vim have a Ctrl+P plugin, but the Ctrl+P feature of Sublime originated from the Vim plugin.

Re: Actualvim – Sublime Text 3 input mode powered by Vim itself

#12
post #11

Earlier quoted context omitted.

The main reason (for me) is Ctrl+P. Working on a project with lots of files (like Rails) without that is a huge pain.

Not only does Vim have a Ctrl+P plugin, but the Ctrl+P feature of Sublime originated from the Vim plugin.

I know. But it doesn't work the way I want it to. It needs to fuzzy search the directory that I've opened, prioritizing first by reverse chronological order of when they were opened. It's been a while, but I played with the settings for both the CtrlP and the Command-T plug-in, but neither worked like in Sublime.

Re: Actualvim – Sublime Text 3 input mode powered by Vim itself

#13
post #2

This makes me want to ask... why not just use vim?

Because vim is broken. I gave up vim after 7 years because of all the segfaults, in-extensibility and just horrible code. Some of the files in the vim code base are over 20,000 lines with hundreds of ifdefs, and littered with unsafe pointer use. The code is a horrible experience to just look at, pre 1989 C style functions, mixed tabs and spaces everywhere, and the files aren't even a valid encoding of any kind whatsoever, instead it has this broken mbyte that will ruin your day if you touch a vim source file in anything but vim.

If you use vim as is you may not notice much, but vim will forever be limited to responding only to user interaction with no hope of ever getting any kind of timers, async actions or event loop.

Try making a simple clock for your status line that updates every second. You can't. And it will never be possible. Because vim is broken.

Re: Actualvim – Sublime Text 3 input mode powered by Vim itself

#14
post #10

Things I would actually be interested in for Vim: Some sort of type-validation plugin for languages like C, C++, Scala, Haskell, etc. There are ways to get around it, but getting the error in the editor window is very nice for dummies like me.

https://github.com/scrooloose/syntastic

Huh, do the syntax checkers for those languages actually do type checking too?

Re: Actualvim – Sublime Text 3 input mode powered by Vim itself

#15
post #10

Things I would actually be interested in for Vim: Some sort of type-validation plugin for languages like C, C++, Scala, Haskell, etc. There are ways to get around it, but getting the error in the editor window is very nice for dummies like me.

https://github.com/scrooloose/syntastic

Syntastic is great for flagging syntax errors, but I don't think it provides for type checking like DannoHung is after.

Re: Actualvim – Sublime Text 3 input mode powered by Vim itself

#16
post #9

Why wouldn't I just use Vim (or better yet, Emacs) in the first place?

Because you get all of the benefit of Sublime AND Vim. There's plenty of benefits to using Sublime over Vim, and vice-verse. This way you can have the best of both worlds. There are already Sublime plugins that do this, but they are kind of lackluster to be honest.

Re: Actualvim – Sublime Text 3 input mode powered by Vim itself

#18
post #9

Why wouldn't I just use Vim (or better yet, Emacs) in the first place?

I've said this elsewhere in this thread, but—

With this you can use Sublime Text's UI (chrome, file browser, and smooth scrolling—all better than Vim's) with Vim's input mode. Best of both worlds.

Re: Actualvim – Sublime Text 3 input mode powered by Vim itself

#19
post #13
post #2

This makes me want to ask... why not just use vim?

Because vim is broken. I gave up vim after 7 years because of all the segfaults, in-extensibility and just horrible code. Some of the files in the vim code base are over 20,000 lines with hundreds of ifdefs, and littered with unsafe pointer use. The code is a horrible experience to just look at, pre 1989 C style functions, mixed tabs and spaces everywhere, and the files aren't even a valid encoding of any kind whatso…

How much of a challenge would it be to rewrite vim properly? Or is that a crazy idea..

Re: Actualvim – Sublime Text 3 input mode powered by Vim itself

#20
post #13
post #2

This makes me want to ask... why not just use vim?

Because vim is broken. I gave up vim after 7 years because of all the segfaults, in-extensibility and just horrible code. Some of the files in the vim code base are over 20,000 lines with hundreds of ifdefs, and littered with unsafe pointer use. The code is a horrible experience to just look at, pre 1989 C style functions, mixed tabs and spaces everywhere, and the files aren't even a valid encoding of any kind whatso…

A patch series implementing asynchronous timers has in fact recently been posted to the Vim development list [^1]. Its status is uncertain, and is still being actively discussed, but to state that such a thing "will never be possible" is just blatantly false.

[^1]: https://groups.google.com/forum/#!topic/vim_dev/-4pqDJfHCsM%...

Post reply on HN