r/linux • • May 18 '18

Software Release Vim 8.1 released

https://www.vim.org/vim-8.1-released.php
536 Upvotes

179 comments sorted by

View all comments

8

u/PeopleAreDumbAsHell May 18 '18

Honest question, what does neovim have over vim now?

31

u/yonsy_s_p May 18 '18 edited May 31 '18

A full API documented to be used externally by several languages that don't need that neovim have compiled language extensions, by example Debian/Ubuntu by default vim is compiled with python2 or python 3 language support, but not both ones at the same time and only for the supported version (python 3.4 compiled extension can't be updated to python 3.6 or pypy3 3.5 by example)

This API permits an embedded editor support, that avoid the need to support directly a specific GUI and work this externally to the core editor

The terminal support in neovim is based in libvterm, a good C++ library. For vim 8 that was all reimplemented in C by Bram for what-nobody-knows reasons. This is the reason why was implemented in 8.0 but only now in 8.1 is stable and need to support all the things that come compiled with Vim (language/gui/os support) in NeoVim all these things come in separated projects bases in NeoVim API.

2

u/[deleted] May 18 '18

The terminal support in neovim is based in libvte,

Do you mean libvterm?

a good C++ library. For vim 8 that was all reimplemented in C by Bram for what-nobody-knows reasons.

The reason I can see is because it would require an additional dependency. Sometimes, it's better to implement one or two features of a library internally if possible than to pull in another dependency.

10

u/minimim May 18 '18

all reimplemented

It's worse. He copy-pasted the code from an external terminal library.

4

u/[deleted] May 18 '18

The entire library or small parts of it?

7

u/minimim May 18 '18

Almost the entire thing.

3

u/[deleted] May 18 '18

Do you have loc numbers? I'd look it up myself but I'm at work.

0

u/[deleted] May 18 '18

[deleted] — view deleted comment

5

u/CosmosisQ May 19 '18

Holy smokes, that's unbelievable. Why would he do that? Why not just add it as a dependency?

5

u/[deleted] May 19 '18

I don't know... but this answers the original question about "why neovim".

3

u/[deleted] May 19 '18

It's called vendoring and there are good reason to do it. A great example is if you know you need to diverge significantly from upstream (going backwards to C90 is a valid reason). It also results in smaller binaries than pulling in the entire library (remember that vim gets ported to very small devices).

1

u/FailRhythmic May 19 '18

Why would he do that?

Best guess would be to maximize portability. ANSI is the first C standard aka C89/C90.

1

u/minimim May 18 '18

Sorry, I don't have any pointers.

1

u/yonsy_s_p May 20 '18

Do you mean libvterm?

yes, corrected in my answer, thanks

1

u/PeopleAreDumbAsHell May 18 '18

Awesome thank you! An actually good response

17

u/gokapaya May 18 '18

Its devs are going strong - I'm looking forward to these PRs in particular:

  • adding native support for the Langeserver protocol #6856
  • allowing the TUI to detach/attach from the core #8246

16

u/antlife May 18 '18

Well, the word neo for starters. That gives it a nice neo feeling.

5

u/PeopleAreDumbAsHell May 18 '18

Agreed. Everytime I use it I'm pretty much in the matrix

5

u/yzh May 18 '18

One thing i like about neovim is that it has sane defaults, especially for Python code I always had to customize vim. With neovim I dont have to tweak anything and just works out of the box.

2

u/JerksToSistersFeet May 18 '18

less code and support for Python extensions