Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find color scheme solarized #104

Open
jeromecovington opened this issue Jun 19, 2014 · 26 comments
Open

Cannot find color scheme solarized #104

jeromecovington opened this issue Jun 19, 2014 · 26 comments

Comments

@jeromecovington
Copy link

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?

@AnderRasoVazquez
Copy link

Shame here.

@AnderRasoVazquez
Copy link

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

@ghost
Copy link

ghost commented Jul 4, 2014

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

@vasco3
Copy link

vasco3 commented Jul 25, 2014

the same happened to me

@vjdavid
Copy link

vjdavid commented Sep 1, 2014

@AnderRasoVazquez it helped me a lot thanks :)

@AnderRasoVazquez
Copy link

Glad to hear that! =)

@l2x
Copy link

l2x commented Jan 20, 2015

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

@wimplash
Copy link

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().

@lc1200
Copy link

lc1200 commented Jan 24, 2015

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

@ghost
Copy link

ghost commented Jan 25, 2015

@wimplash thanks!

@dcapwell
Copy link

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.

@Jero786
Copy link

Jero786 commented May 12, 2015

@AnderRasoVazquez It woks for me too thanks! 👍

@improved-broccoli
Copy link

@wimplash Works for me too. Thanks!

@gngdb
Copy link

gngdb commented May 20, 2015

Same problem, thanks for the fix!

@bitozoid
Copy link

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

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

@keeprock
Copy link

@wimplash Thanks!

@sidewinder12s
Copy link

@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

@weakish
Copy link

weakish commented Apr 27, 2016

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

@blue7wings
Copy link

@weakish Thanks! it works☺

@lfir
Copy link

lfir commented Feb 3, 2017

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

@vysogot
Copy link

vysogot commented Sep 19, 2017

@wimplash Thanks!

@DavidPesticcio
Copy link

I had the same issue - then I found this 😃 - 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

@daveyproctor
Copy link

Thank you, @wimplash!

@0123cf
Copy link

0123cf commented Apr 7, 2018

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

@arvindamirtaa
Copy link

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

@Clcanny
Copy link

Clcanny commented Jan 18, 2019

@AnderRasoVazquez Thank you!!!

LeavaTail added a commit to LeavaTail/dotfiles that referenced this issue Jan 18, 2022
LeavaTail added a commit to LeavaTail/dotfiles that referenced this issue Jan 18, 2022
LeavaTail added a commit to LeavaTail/dotfiles that referenced this issue Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests