Vim doesn't load some plugin

Hello.
I’m using “vim-plug” plugin manager. My “.vimrc” file include the following colour scheme:

[...]
Plug 'morhetz/gruvbox'
Plug 'jacoborus/tender.vim'
Plug 'Luxed/ayu-vim'
colorscheme ayu
[...]

These colorscheme aren’t recognized by Vim during startup, because I got an error and colorscheme fallbacks to a default theme. If I copy a colorscheme file in the “~/.vim/colors” directory it works. If I set, e.g., ayu colorscheme after vim is started, it works. I tried to put “autocmd VimEnter * :set colorscheme ayu” but it doesn’t work. How can I solve this?

Shouldn’t the colorscheme ayu command be outside the block delimited by the call plug#begin() and call plug#end()? At least according to the syntax defined in vimplug’s documentation:

Shouldn’t it be like this?

call plug#begin()

Plug 'morhetz/gruvbox'
Plug 'jacoborus/tender.vim'
Plug 'Luxed/ayu-vim'

call plug#end()

colorscheme ayu

Also, I can’t seem to find the Luxed/ayu-vim repo on github, only ayu-theme/ayu-vim. Shouldn’t it be

Plug 'ayu-theme/ayu-vim'

instead?

Hi, https://github.com/luxed/ayu-vim is a fork of ‘ayu-theme/ayu-vim’. I found the solution at https://github.com/lifepillar/vim-solarized8. The code to be inserted is the following:

autocmd vimenter * ++nested colorscheme [colorscheme name]
1 Like