我通过pathogen安装了Solarized主题,它在我的Mac上的终端和MacVim中都可以正常工作。今天,我尝试在Linode上设置一个Ubuntu盒子。我刚刚克隆了我的dotfiles并建立了符号链接到我的.vim
和.vimrc
文件夹(这与我在本地机器上使用的设置相同)。
每当我尝试在Ubuntu盒子上运行vim时,就会出现错误。
Error detected while processing /root/.vimrc:
line 43:
E185: Cannot find color scheme solarized
Press ENTER or type command to continue
通过其他设置(比如行号)能够看出我的.vimrc
已经被加载了。
.vimrc
中相关的代码行如下:
" settings needed for solarized colorscheme
syntax enable
set background=dark
let g:solarized_termcolors=256
colorscheme solarized
这是我的.vim/bundle
目录的设置(以防你怀疑我实际上没有将solzrized放在那里!):
~ ls .vim/bundle
ack coffeescript liquid snipmate vim-colors-solarized vim-jst zencoding
closetag html5.vim nerdtree surround vim-javascript vim-rails
还有一件事,在Ubuntu系统上,在vim中运行echo &t_Co
会得到256
。
有什么想法吗?