I'm new to neovim settings. I'm migrating from vim to neovim. My question is described in the comment below, (*).

In ../init.vim I have:

set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vim/vimrc

call plug#begin('~/.vim/vim-plug-in')   " <-------- can I call it again here? (*)
call plug#end()

In ../vimrc I have:

call plug#begin('~/.vim/vim-plug-in') 
" Vim UI 
Plug 'mhinz/vim-startify'
Plug 'vim-airline/vim-airline'
Plug 'cseelus/vim-colors-tone'
Plug 'morhetz/gruvbox'
Plug 'rrethy/vim-hexokinase', { 'do': 'make hexokinase' }
call plug#end()

Btw, from a 5 years ago answer on Reddit: It seems like the what passed to plug#begin() can be different, and then it will work?


1 Answer 1


You can only call plug#begin() and plug#end() once, so no this will not work.

You can define all your plug-ins from the same place (such as the vimrc file) and use a conditional to detect whether you're running NeoVim to load plug-ins you only want on NeoVim:

call plug#begin('~/.vim/vim-plug-in') 
" Vim + NeoVim plug-ins
if has('nvim')
  " NeoVim-only plug-ins
call plug#end()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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