Questions with Vim’s Creator, Bram Moolenaar
binpress.com
binpress.com
In 8 months, here's what NeoVim has done:
1) Reformatted all the code.
2) Deleted a lot of working, old code.
3) Raised a good chunk of cash.
4) Published a very shiny website.
5) Released nothing.
There's nothing wrong with simplifying a code base, but if you run around trying to do that independent of any reasonable technical direction, you're just making noise.
Given that NeoVim's technical direction is extremely poorly considered (while also disparaging Bram's work), I can't help but think highly of Bram for being polite -- at all -- to such a disrespectful fork.
Natively supporting Lua/LuaJIT and Python in writing asynchronous plugins, this alone is worth the wait. I am willing to give them A LOT MORE than 8 months if they can pull just this single feature off.
The request for Python integration has been sitting at the top of Vim's voting list for many years. It must be a very very difficult task, otherwise it could be done years ago. http://www.vim.org/sponsor/vote_results.php/
Other than the new plugin infrastructure, Neovim's GUI and embedding systems will be awesome. Anyway, I applaud people who explore and try to make progress (like from Vi to Vim, a natural process). In the mean time, I am happily using Vim which is both extremely powerful and stable.
TL,DR; I can wait.
They've done even more than that. They have gone to great lengths to be helpful. For example, tarruda created an issue on our own issue tracker to let us know they updated their python plugin architecture so that we could fix our Neovim plugin. He didn't have to do this.
https://github.com/Floobits/floobits-neovim/issues/10
tarruda has shown himself to be a very productive engineer and a great steward of a growing Neovim community.
Our experience with Neovim and Vim has been night and day. The reality is that with Neovim you can build plugins that do more than you can with vim, painlessly. I don't really want it to be a vim versus neovim thing, but Bram strikes me as someone who at the very least doesn't understand Neovim's goals. I certainly hope that Neovim's changes are not backported into vim, Neovim is much more open about contributions whereas with vim there's a single gatekeeper with limited time to address big changes.
I use it full-time on supported platforms (everything except Windows), but breaking changes will require occasional reconfiguration, recompilation, or remorse.
Even if they had done JUST that and the deprecation of old code, it would be MORE than enough.
I've been tracking the neovim repo for a while, and my feeling is that they could have easily made a couple of releases with stability matching some other notable projects, but they have intentionally chosen to be conservative and wait.
If you want an example of one area where there has been work and improvement, check out the Wiki page on the updated clipboard integration: https://github.com/neovim/neovim/wiki/Python-plugins,-clipbo... . Yeah, it's different, and not yet as capable as Vim's built-in clipboard integration. But if they are headed toward a goal of more generalized integration points, then this is a strong step in the right direction.
1. The code was reformatted because Vim's codebase is a mess. It mixes tabs and spaces willy-nilly. It uses different indentation rules in different parts of files. These issues may seem cosmetic, but they make the code harder to follow and increase the likelihood of bugs. Indentation can be especially misleading when control flow lacks braces (a common occurrence in Vim). The change didn't require much effort and it made it easier for people to contribute to Neovim.
2. Actually, quite a bit of Vim's old platform-specific code is broken. It's just that nobody uses an SGI IRIS or Amiga, so nobody complains about it. In some cases, Neovim removed ifdef'd code that could never possibly be included[1].
3. People have donated less than $40k to Neovim. That's not even the salary of a single developer for the 8 months it's been around. The contributors aren't in it for the money. They simply want to build a great editor.
4. A very shiny website? It's just static pages hosted on Github. If you look at the commit history[2], you can see it's insignificant compared to work done on the Neovim codebase.
5. Nothing? There's an entire repository of working code. Right now you can clone Neovim, compile it, and it will run almost all Vim plugins without issue. The team is very conservative about declaring software stable. They may not have a tagged release, but to call the existing work "nothing" is unreasonable. It's at least as stable as Atom.
You also neglected to mention all the other work done on Neovim, such as replacing ad-hoc cross-platform compatibility and event handling with libuv. Then there's the improved plugin APIs which allow features that aren't possible in Vim.[3] And of course, plugins can be written in any language. No more VimL shims needed.
Lastly: Disparaging? Disrespectful? It's hard to find any criticism the Neovim contributors have made towards Bram or Vim. They like Bram. They like Vim. Thiago tried to contribute to Vim multiple times, but was discouraged or ignored.[4][5] Instead of complaining or giving up, he and the other contributors are trying to improve the editor and the community around it. There's no malice or greed involved.
1. https://github.com/neovim/neovim/pull/814
2. https://github.com/neovim/neovim.github.io/
3. https://github.com/benekastah/neomake
4. https://groups.google.com/d/msg/vim_dev/QF7Bzh1YABU/02-YGr7_...
5. https://groups.google.com/d/msg/vim_dev/65jjGqS1_VQ/fFiFrrIB...
Easy compile? (I'm at work and no git clone/compiling here!) Might try later on tonight.
I recently compiled it on CentOS 5 and had to build my own cmake.
Neovim is an emo-fork created by a frustrated little princess. Nothing more, nothing less.
There's a lot of work to do on Vim itself; forking it and building a completely incompatible code base is not going to help in any way.
Joel Spolksy Things You Should Never Do Part 1 http://www.joelonsoftware.com/articles/fog0000000069.html
Darmesh Shah How To Survive a Ground-Up Rewrite Without Losing Your Sanity (a response to essay #1 13 years later) http://onstartups.com/tabid/3339/bid/97052/How-To-Survive-a-...
It's not always cut and dry when you should start over, but if you are make sure you are doing it in a way that starts presenting customer/user value ASAP.
1. https://github.com/b4winckler/macvim/tree/master/src
2. https://github.com/b4winckler/macvim/blob/master/src/os_unix...
3. https://github.com/b4winckler/macvim/blob/master/src/eval.c
(Don't take this too harshly - the content in your post is good.)
That's the same as what parent said.
Neovim's #1 goal (from the webpage) is: "Neovim is a project that seeks to aggressively refactor Vim in order to simplify maintenance and encourage contributions". And other goals including adding new features for the future.
You might not 100% HAVE to drop "supports for exotic OSes" for that, but is extremely logical, and very much helpful in that direction.
Anything that reduces code size makes it easier for maintanance. You don't want to have to check how things play for those IFDEFS for Amiga OS when you write code for 2014.
For example, Neovim has plans to remove ex:
https://github.com/neovim/neovim/issues/1089
Exotic is also a matter of definition, there are still applications in use on those oses, and supporting them is a service to those that have to work in them. Not everyone is building apps for Heroku deployment nowadays.
In your concrete example of a feature being removed, Neovim is actually removing a misfeature: the interactive ex mode, not the command line ex mode. The feature they're removing is akin to: http://xkcd.com/1172/.
I objected when I thought they were removing all support for ex; as it turns out, they're only removing support for switching between visual mode and ex mode - making them two separate front-ends. That's not a problem.
I am with the neovim guys on this, but you can refactor without removing features (in fact, the original meaning of "refactoring" was in fact "code improvements with no functionality changes")
And yes, removing features and support for some OSes is not a prerequisite for reaching neovim's goals. It will make it easier for them, that's for sure, but that is absolutely not a given, at all.
Features that aren't used (or used in very rare cases) can, and in many cases should, be ruthlessly cut out in a refactoring.
By definition we care for the features that we care about. If noone (as in: very small value of "some people") cares about Amiga OS support, it should be removed to have a cleaner codebase.
Else in 2050 they'll be wondering what this Oric Atmos is, and why it needs 400 IFDEFS in vim code.
>And yes, removing features and support for some OSes is not a prerequisite for reaching neovim's goals. It will make it easier for them, that's for sure, but that is absolutely not a given, at all.
More mevelopers should get familiar with the notion of "opportunity cost".
In practice large scale refactoring and change in behavior (dropping some features, fixing some stuff) are pretty much tied together.
That is why I started from scratch:
Sources are at http://svnweb.freebsd.org/csrg/usr.bin/ex/
After all Linux didn't use a SCM until quite late.
The BSDs have been using CVS for a long time so it's plausible they used something like RCS or SCCS before CVS was available.
FreeBSD repo goes back to 1993: https://svnweb.freebsd.org/base?view=revision&revision=2
Keith Bostic reimplemented it from scratch as nvi (new vi) for 4BSD.
Vim's code is not descended from either of those.
¹ http://minnie.tuhs.org/cgi-bin/utree.pl?file=1BSD/ex-1.1/REA...
Q: "What does the future hold for Vim?" – A: "Nothing spectacular."
That's quite a refreshing view, I don't think a person exists that has mastered Vim absolutely, who knows the most efficient way to achieve everything they need to. It probably takes just as long to master Vim than it has for Vim to be developed to where it is, and it's good to see that there's a focus on improving the existing functionality than extending it further.
What the NeoVim team is doing sounds a whole lot like what the libressl team did when they forked OpenSSL, which also had tons of code for obsolete operating systems.
At the point of this presentation[1], they removed 90,000 lines of code; it's probably more now.
Unlike system software like OpenSSL, Vim is something I (and many developers) spend many hours each day using. In 2014, there's no good reason why it shouldn't be as responsive and flexible as possible.
Sometimes when my projects get large and have lots of files open and Vim starts to slowdown just a little, you can almost feel the decades of technical debt taking its toll.
As someone mentioned previously, the function that waits for user input [2] is 400 lines long and has more the 41 ifdefs, many for operating systems that have been long dead.
Interestingly enough, it's because of the growing popularity of Vim that this is becoming more of an issue. I live in the Boston area and have visited many startups; Vim is quite popular among them. Yes, it's a little hipster, but in a good way. ;-)
We have lots of seasoned developers at our Vim meetup [3] of course, but there are way more younger people who've discovered Vim. The room is usually packed.
1. http://www.openbsd.org/papers/bsdcan14-libressl/mgp00026.htm...
2. https://github.com/b4winckler/macvim/blob/master/src/os_unix...
How are those steps "odd and irrelevant"?
Dropping support for BS OS makes the code leaner and cleaner, and easier to update.
From the article: Write nice code. Use white space properly, use good names for methods, add comments to explain anything that isn’t obvious...
I do wish more people subscribed to that notion, even if it doesn't sound like the magic recipe to become the next rockstar ninja.
(Edit: Cloning the Zombie of Obscure Comment Formatting)
enable with :set undofile in .vimrc
NB: if you want to specify a dir for it, you need to create it yourself, or it silently won't work. eg mkdir ~/.vim/undodir, then in .vimrc :set undodir=~/.vim/undodir
I also love the idea of undotree, with branches etc, but found it too confusing in practice. Could the UI be more git-like, I wonder?
It's a lifesaver after that.
Full disclosure - I made it during my Google Summer of Code with Bram in 2008.
Odd to express narcissism in response to this question.
I have no idea whether NeoVim is going in the right direction but the feeling you get from this response is that Bram is focused on guarding his turf rather than thinking constructively about how to move Vim forward.
In case anyone doesn't know, this is Vim's license:
”Vim is Charityware. You can use and copy it as much as you like, but you are encouraged to make a donation for needy children in Uganda.”
Hard to believe the guy is narcissistic at all :)
We aim at very low costs. The goal is to limit the costs to 5% of the
revenue. The revenue and expenses show that the costs in 2013 were only 0.5%
of the total revenue. This is within the goal by a large margin. The
largest parts of the costs are unavoidable banking costs.
That is an exceptionally frugal charity; lots of charity monitoring sites seem to think that over 80% is doing well.