Vim probably did this by default, whenever I invoke files from a project that has its own .vimrc
s it's auto-sourced. Neovim, however, doesn't import vimrc
s. How can I make Neovim scan and use project-specific configuration files?
1 Answer
Vim doesn't do that by default, you probably had set exrc
in your .vimrc
, see :h 'exrc'
.
As the doc says if you add set exrc
to your vimrc you also probably want to add set secure
(:h 'secure'
).
Both of these options are also available in neovim.
You may also want to have a look at this Luc Hermitte's plugin which also allows to enable local configurations files with more options.
-
Thanks for the advice! Does Neovim recognise all the original
vimrc
s, or do I have to change the file name?– Paul KimMar 13, 2019 at 15:22 -
-
1
-
1If I'm not mistaken, exrc was deprecated in Neovim shortly after this answer was published. github.com/neovim/neovim/issues/5784 Apr 8, 2020 at 19:29