Recently I decided to switch from Vundle to VimPlug, and I noticed that after installing it...
putting the
plug.vim
in my autoload directory~/.vim/autoload/
and making sure that my vim and neovim was symbol linked so I didn't have to create a whole new set of directories just for neovim with this...
ln -s ~/.vim ~/.config/nvim ln -s ~/.vimrc ~/.config/nvim/init.vim
I was still getting errors. It works perfectly in vim, but soon as I start up nvim I get these list of errors.
Error detected while processing /home/username/.config/nvim/init.vim:
line 26:
E117: Unknown function: plug#begin
line 28:
E492: Not an editor command: Plug 'vim-airline/vim-airline'
line 29:
E492: Not an editor command: Plug 'vim-airline/vim-airline-themes'
line 30:
E492: Not an editor command: Plug 'scrooloose/nerdtree'
line 31:
E492: Not an editor command: Plug 'ctrlpvim/ctrlp.vim'
line 32:
E492: Not an editor command: Plug 'flazz/vim-colorschemes'
line 34:
E117: Unknown function: plug#end
This is the VimPlug section of my .vimrc
"[VIMPLUG]
call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'scrooloose/nerdtree'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'flazz/vim-colorschemes'
call plug#end()
"[VIMPLUG_END]
What am I doing wrong ?
runtimepath
setting doesn't contain the right autoload folder (whereplug#...
functions are defined)..vim
symbolic link so I really don't see why its not being able to see it when it works just fine in vanilla vim. Plus my.vimrc
is really tiny so I really don't see anything else that what would be conflicting with it.:set runtimepath?
- check if your path is actually there or not.runtimepath=~/.config/nvim,/etc/xdg/nvim,~/.local/share/nvim/site,/usr/local/share/nvim/site,/usr/share/nvim/site,/usr/ share/nvim/runtime,/usr/share/nvim/site/after,/usr/local/share/nvim/site/after,~/.local/share/nvim/site/after,/etc/xdg/nv im/after,~/.config/nvim/after