r/Gentoo • • 9h ago

Support How to have vim syntax without vim

I am a new gentoo user . I use neovim . I want to ask how can I use the vim syntax use flag without installing vim

5 Upvotes

4 comments sorted by

1

u/L0tsen 9h ago

As root edit/create this file:

emacs /etc/portage/package.use/neovim

Write:

app-editors/neovim vim

Save and Quit

4

u/Cool-Walk5990 9h ago

Neovim does not have any such use flag. You need to follow this section of the wiki

https://wiki.gentoo.org/wiki/Neovim#No_syntax_highlighting_on_Gentoo_configuration_files

2

u/L0tsen 9h ago edited 9h ago

Oh I must have misread it then

0

u/tinycrazyfish 7h ago

What syntax use flag? never seen that.

Just emerge app-vim/xxx-syntax. they depend on vim-plugin.eclass which DEPEND on app-editors/vim. So either modify the eclass, or override it with a new one.