vim-plug icon indicating copy to clipboard operation
vim-plug copied to clipboard

Vim can't find my colorscheme on startup

Open osteotek opened this issue 12 years ago • 4 comments

After migrating from vundle to vim-plug, vim can't find my colorscheme on startup. But after starting vim I can load it using :colorscheme command. Every other plugin loads fine. Any ideas?

I change colorscheme setting right after loading it with vim-plug. I use vim 7.4.273 with +ruby

osteotek avatar Nov 25 '14 09:11 osteotek

Found the answer in closed issues, sorry. Apparently vim-plug works differently from vundle. With vundle, I used to change plugin settings right after their 'Plugin ...' line, in vim-plug plugins become available only after plug#end() call.

osteotek avatar Nov 25 '14 09:11 osteotek

Yes, &runtimepath is updated when you call plug#end(). I assume the current API of Vundle, vundle#begin() and vundle#end() pair instead of vundle#rc(), works the same way.

junegunn avatar Nov 25 '14 10:11 junegunn

if you want to set son variable to configure a plugin you can do it just fine (I do it in my vimrc), you can't call functions defined by the plugin or as in your case the colorscheme. And btw if I'm not wrong Vundle.vim now use the same scheme as vim-plug with a call vundle#begin() and call vundle#end()function calls and before the vundle#end the runtimepath is not modified so it has the same problem.

vheon avatar Nov 25 '14 10:11 vheon

Yes, neobundle has same problem.

Shougo avatar Nov 25 '14 11:11 Shougo