To address article authors last paragraph: NeoVim is coming. I haven't built it (yet) but I do seem to have massive faith in it, based on what the website says and a bit of reading on other peoples experiences. Anyone care to share some impressions here?
at a basic level, compared to vim 8, it is basically just vim with the configurations everyone turns on, enabled by default - and has the ability to run a terminal inside of it.
if i were betting, i'd say that unless they start coming up with new features that regular vim can't do - neovim has a shelf life. neovim and vim 8 are not compatible in terms of the new async api and that is what plugin authors really want - plugin authors are probably going to choose vim 8
The big problem with vim (and the reason neovim started) is because vim development has slowed so much. The advantage of neovim, is that it's a newer code base with much of the cruft from vim removed. Theoretically, neovim will win out because it can be developed for quickly.
Certain distros already default to neovim, and then alias vim to neovim. Others already have support for neovim out of the box with their built in package manager. Neovim has a good chance.
Actually IMHO the biggest pro of NeoVim wasn't defaults but code refactoring (removal unsupported platforms, cleanup of the code, porting to libuv) and change In way that codebase is managed.
Why this is important?
less supported platforms = less testing
less testing = faster iterations
simpler code = more developers capable of writing new features
Neovim's (unfinished) killer feature is the plugin/GUI architecture. Plugins can be written in any language and interface with the editor through an API. NO vim script needed.
I also thought that it has a lot to do with the technical debt Vim has accumulated -- things that had to be "tweaked" for the less capable terminals, circumvention of keyboard control for these etc. Basically, the stuff that has contributed to Vims internal architecture rot. I have read opinionated pieces on how its current codebase leaves a lot to be desired, resembling an aging building. I thought NeoVim has specifically targeted these issues, aiming at maintaining quality codebase. Then again, any experienced developer would know that maintaining quality codebase and even architecture is by no means a trivial task. But anyway, they also hope that contributing to NeoVim would be easier because of its simpler and more readable code, compared to Vim which also has to support a whole bunch of terminal protocols, of which we probably only use ANSI compatible and VT100 (I don't).
Minus a few things they broke it's generally a more pleasant experience. However, with Vim 8 adding asynchronous I/O, switching may not be worth it right now. I wouldn't go back but then I already made the switch.
The other replies have mentioned that Vim 8 is catching up to Neovim, but one thing that Neovim still has that Vim will likely never have, is a built-in terminal emulator. A lot of people (I think Bram included) see this as completely unnecessary, but it does have some interesting use cases. The fzf plugin makes great use of it, for example. It can also be great for writing code in one split and using the REPL in another split, but usually something like tmux will suffice for that.
lot of people (I think Bram included) see this as completely unnecessary
They forget about what was primary reason for a build-in terminal emulator - allowing integration with interactive tools like debuggers. Vim can't do that without hacks.
And what if you want to capture and operate on parts of the output of one or more shell commands? And what if that output spans more than one screen? How hard is it to select more than one page of text in the terminal emulator, resume vi, and then paste it back again? Which terminal emulator are you using that makes it easy to select multiple pages of text, and search through that text to find the parts you want to select? Gee, you'd think it would be nice to have a tool that's good at searching and selecting text, wouldn't you?
Do you mean that it does not need an external terminal? So you can just start load the process from whatever parent that does not have a tty, and it still has a text user interface as it would with an external terminal? If so, I am not sure why that is necessary, and I also happen to like how in UNiX things are designed to just do one thing. I mean, speaking of cruft -- why maintaing a terminal-related code base, when 99% of users already have preferred terminal emulators which they invoke NeoVim from? Or maybe I misunderstood.
Actually, as far as I know, they're not maintaining a terminal-related code base. Instead, they're using LeoNerd's libvterm library to get this functionality. I'm still not 100% convinced that it's something that should be in the editor, but they're implementation is quite clean and not what I'd call cruft.
I tried it for a little, just to see what the fuss is about. Couldn't tell the difference and just went back to my vim setup. Seems like developers care, so that'll probably help newvim out if the interest continues.
32
u/panorambo May 07 '16
To address article authors last paragraph: NeoVim is coming. I haven't built it (yet) but I do seem to have massive faith in it, based on what the website says and a bit of reading on other peoples experiences. Anyone care to share some impressions here?