1
Error detected while processing /usr/share/vim/vim74/syntax/synload.vim
line 19:
E185: Cannot find color scheme 'MyColor'

Those lines of errors keep yelling about cannot find color scheme. But, nothing is wrong. The colorscheme is exists in /usr/share/vim/vim74/colors directory. I've tried to put it in ~/.vim/colors/, but vim keep complaints about those errors.

The colorscheme loaded just fine. Doing :source to my .vimrc file loaded everything just fine. Everything is fine except those lines of errors keep showing up, when starting vim and when sourcing .vimrc file even though everything works. What is this? And how can I fix this?

INFO: I'm using Arch Linux.

  • Why did you put this to /usr/share/vim/vim74/colors/? That location belongs to Vim; you might lose your customizations on upgrade / reinstall of Vim. Is the script name exactly MyColor.vim (including case)? – Ingo Karkat Mar 31 '15 at 19:19
  • The filename is lowercase. And the command to activate it too is lowercase. mycolor.vim and colorscheme mycolor – Mas Bagol Mar 31 '15 at 19:28
  • But the output complains about MyColor. Seems like the g:colors_name variable inside the script is using inconsistent case. Try renaming either to be consistent, then try again. – Ingo Karkat Mar 31 '15 at 20:14
  • Do you have syntax onin your .vimrcfile? – nicoX Mar 31 '15 at 20:35
  • Fixed. It's because g:colors_name is set to capitalize. Thanks – Mas Bagol Mar 31 '15 at 20:38
2

The given output complains about MyColor, but apparently the script's name is /usr/share/vim/vim74/colors/mycolor.vim. Seems like the g:colors_name variable inside the script is using inconsistent case. This may work on Windows, but Linux filesystems (and Vim's lookups) are sensitive to case. Try renaming either to be consistent, then try again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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