Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

E185: Cannot find color scheme*

I have been customizing my vimrc file but for some reason, no colorschemes work. Whenever I try to change the colorscheme, it just gives me:

E185: Cannot find color scheme '*'

I checked the color folder to make sure I actually have colors and I do. For example the first item in the color folder is blue.vim but when I put colorscheme blue in the vimrc, it just gives

E185: Cannot find color scheme 'blue'

when I start Vim and the colorscheme doesn't apply. I also tried changing the colorscheme from within Vim and it also returns the same error. All the other vimrc settings that I've tried work so far.

like image 248
Bigbadboybob Avatar asked Oct 17 '16 01:10

Bigbadboybob


2 Answers

This sounds like a problem with your 'runtimepath' option. If you use a plugin manager, these usually extend that. The default location should be ~/.vim/colors. Please check with

:set runtimepath?

There should be a ~/.vim in there (or equivalent).

If all else fails, you could also just :source /full/path/to/your/color.vim

like image 139
Ingo Karkat Avatar answered Oct 15 '22 08:10

Ingo Karkat


For those using Plug as plugin manager, the problem may be solved by setting the color scheme after declaring the plugin that provides the theme:

call plug#begin()
Plug 'rakr/vim-one'   " tell Vim to load the theme/plugin
call plug#end()

colorscheme one       " set the color scheme after the theme provider has been loaded
like image 31
Lual Avatar answered Oct 15 '22 08:10

Lual