LoginSignup
20
15

More than 5 years have passed since last update.

Vimのカラースキームを設定できない問題

Posted at

問題

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 solarizedcall vundle#end() の後に書けとのこと。

というわけで、.vimrcを

·
·
·
NeoBundle 'altercation/vim-colors-solarized'
·
·
·
call neobundle#end()
·
·
·
syntax enable
set background=dark
colorscheme solarized

と書くようにしたら、エラーを解消してカラースキームの設定をすることができた。

20
15
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
20
15