Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 612644

Summary: app-vim/* Add support for neovim
Product: Gentoo Linux Reporter: Aric Belsito <lluixhi>
Component: Current packagesAssignee: Vim Maintainers <vim>
Status: UNCONFIRMED ---    
Severity: normal CC: anrock623, ave, bearcatsandor, cyber+gentoo, ikelos, lo48576, lssndrbarbieri, opal, skrattaren, william
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=586882
Whiteboard:
Package list:
Runtime testing required: ---

Description Aric Belsito 2017-03-14 20:36:03 UTC
We have a lot of packages in app-vim, and all of them should support both neovim and vim (because neovim is compatible with most things from vim-7.4), but we can only build and use them with vim.

The easiest way I can imagine doing this is introducing a new global USE flag, "nvim" or "neovim", and changing the vim-plugin, vim-spell, and vim-doc eclasses to reflect the different runtime path: "/usr/share/nvim/runtime" instead of "/usr/share/vim/vimfiles".

Another possible way we could do this is by adding a new USE_EXPAND, named something like "VIM_TARGETS" with possible values of "vim, neovim" and we install to each of the possible targets so that users can choose to support both vim instances.
Comment 1 Aric Belsito 2017-09-08 21:44:39 UTC
I just attempted to created one solution to this problem (though it's not cleaned up because I'm not sure whether it would get accepted) available at

https://github.com/lluixhi/gentoo/tree/neovim-syntax

Adding a `vim-runtime.eclass` and inheriting from that in order to set the vimfiles directory.
Comment 2 Nikolaj Šujskij 2017-12-23 20:43:19 UTC
Aric, I see that your eclass proposal had been reviewed, do you plan to continue working on it?
Comment 3 fkater 2019-04-30 11:10:09 UTC
If there is some work I could do, let me know.

It was too bad to not use all app-vim/* packages for neovim, too.
Comment 4 Bearcat M. Şándor 2021-07-17 08:50:26 UTC
Is this bug dead? I would be great to be able to have only neovim installed, and not an unused vim/vim-core installation.
Comment 5 opal hart 2021-07-17 23:07:57 UTC
Worst case, I or someone else could set up ebuilds for this on an overlay.
Comment 6 Anna Vyalkova 2022-04-12 09:26:24 UTC
There's an opportunity to implement such support -- Vim eclasses are being ported to EAPI 8.
https://github.com/gentoo/gentoo/pull/24941