2

This question already has an answer here:

I want one vimrc to work with both Vim and NeoVim. The vimrc of Vim seems to work well with NeoVim. But not the other way around, given that there are many special new settings in NeoVim, e.g., terminal mode.

I want not to manage two individual vimrc files needed to be sync'd periodically.

Is there a way within .vimrc to let some statements work with NeoVim alone?

marked as duplicate by muru Oct 6 '16 at 6:35

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

6

From NeoVim's Github issue tracker, you can use has('nvim'):

if has('nvim')
   "something for neovim
endif
  • 1
    Or !has for plain vim (for those who aren't fluent in VimL) – Tom Hale May 22 '18 at 7:50

Not the answer you're looking for? Browse other questions tagged or ask your own question.