問題
VimのカラースキームをSolarizedに設定しようとして、.vimrcに以下のように書いて
NeoBundle 'altercation/vim-colors-solarized' syntax enable set background=dark colorscheme solarized
何かファイルを開こうとすると、以下の Cannot find color scheme のエラーが出てカラースキームが設定されない。
$ vim .vimrc Error detected while processing /Users/user/.vimrc: line 100: E185: Cannot find color scheme 'solarized' Press ENTER or type command to continue
解決方法
Cannot find color scheme solarized · Issue #104 · altercation/vim-colors-solarized
によると、 colorscheme solarized
は call vundle#end()
の後に書けとのこと。
というわけで、.vimrcを
· · · NeoBundle 'altercation/vim-colors-solarized' · · · call neobundle#end() · · · syntax enable set background=dark colorscheme solarized
と書くようにしたら、エラーを解消してカラースキームの設定をすることができた。