vim-colors-solarized icon indicating copy to clipboard operation
vim-colors-solarized copied to clipboard

Cannot find color scheme solarized

Open jeromecovington opened this issue 11 years ago • 26 comments

Here is my .vim/bundle dir: vim-colors-solarized

Here is my .vimrc syntax enable set background=dark colorscheme solarized

But when I start vim to edit a JavaScript file, I get this error. Error detected while processing /Users/jcovington/.vimrc: line 3: E185: Cannot find color scheme solarized Press ENTER or type command to continue

Oddly, when I begin editing the file, it seems that the Solarized colors are applied.

image

How can I avoid the error?

jeromecovington avatar Jun 19 '14 15:06 jeromecovington

Shame here.

AnderRasoVazquez avatar Jun 27 '14 06:06 AnderRasoVazquez

I fixed. This is what I did: cp ~/.vim/bundle/vim-colors-solarized/colors/solarized.vim ~/.vim/colors/

AnderRasoVazquez avatar Jun 27 '14 08:06 AnderRasoVazquez

shame here:) i'm using vundle to manage addons and the vim version is 7.4.

ghost avatar Jul 04 '14 21:07 ghost

the same happened to me

vasco3 avatar Jul 25 '14 01:07 vasco3

@AnderRasoVazquez it helped me a lot thanks :)

vjdavid avatar Sep 01 '14 00:09 vjdavid

Glad to hear that! =)

AnderRasoVazquez avatar Sep 01 '14 00:09 AnderRasoVazquez

@AnderRasoVazquez it's work and thanks. i'm using vundle and vim version is 7.4.

l2x avatar Jan 20 '15 06:01 l2x

When I originally had my .vimrc set up, I was using the older version of vundle and I had colorscheme solarized on the line following Bundle 'altercation/vim-colors-solarized'. With the new version of vundle (Vundle.vim), it appears as though colorscheme solarized must come somewhere after call vundle#end().

wimplash avatar Jan 22 '15 15:01 wimplash

@wimplash that was it! moved it after vundle#end() and it worked for me

lc1200 avatar Jan 24 '15 06:01 lc1200

@wimplash thanks!

ghost avatar Jan 25 '15 17:01 ghost

For Pathogen, can this be fixed without doing a copy after cloning? For now im symlinking to make sure that I can get all the updates.

dcapwell avatar Mar 11 '15 17:03 dcapwell

@AnderRasoVazquez It woks for me too thanks! :+1:

Jero786 avatar May 12 '15 03:05 Jero786

@wimplash Works for me too. Thanks!

improved-broccoli avatar May 18 '15 07:05 improved-broccoli

Same problem, thanks for the fix!

gngdb avatar May 20 '15 14:05 gngdb

Instead you can add it to rtp before loading the colorscheme.

set rtp+=~/.vim/bundle/vim-colors-solarized

bitozoid avatar Jun 30 '15 08:06 bitozoid

@wimplash Thanks!

keeprock avatar Apr 13 '16 10:04 keeprock

@wimplash Thanks! I had this same issue using neovim and vim-plug but moving the colorscheme to after my vim-plug stanza fixed it. Example for others below:

let $NVIM_TUI_ENABLE_TRUE_COLOR=1
syntax enable
set background=dark " or dark

call plug#begin('~/.vim/plugged')
Plug 'https://github.com/altercation/vim-colors-solarized.git'
call plug#end()

colorscheme solarized

sidewinder12s avatar Apr 17 '16 01:04 sidewinder12s

@dcapwell As @wimplash pointed out, move colorscheme after execute pathogen#infect().

weakish avatar Apr 27 '16 08:04 weakish

@weakish Thanks! it works☺

blue7wings avatar May 16 '16 03:05 blue7wings

Thanks, I'm using a different color scheme but also vundle, and this worked equally well for it.

lfir avatar Feb 03 '17 02:02 lfir

@wimplash Thanks!

vysogot avatar Sep 19 '17 09:09 vysogot

I had the same issue - then I found this :smiley: - https://stackoverflow.com/a/34165694/1506858

Your vimrc is supposed to be here: $HOME/.vimrc or there, if you use Vim 7.4 or newer: $HOME/.vim/vimrc

DavidPesticcio avatar Jan 25 '18 23:01 DavidPesticcio

Thank you, @wimplash!

daveyproctor avatar Feb 17 '18 20:02 daveyproctor

With the above scheme, and then start running it the , I get this error. .vim file is missing, and then I fixed. This is what I did:

cp ~/.vim/bundle/vim-colors-solarized/colors/solarized.vim ~/.vim/colors/solarized.vim

0123cf avatar Apr 07 '18 03:04 0123cf

The simple solution that worked for me was to set colors_name=<Name of your theme>.

arvindamirtaa avatar Dec 26 '18 06:12 arvindamirtaa

@AnderRasoVazquez Thank you!!!

Clcanny avatar Jan 18 '19 15:01 Clcanny