Vim 尽管使用 vim-plug 成功安装,但 colorscheme 没有出现
Vim colorscheme not appearing although successfully installed with vim-plug
我已经通过 vim-plug
安装了 altercation/solarized
colorscheme。
这是我的 ~/.vimrc
call plug#begin('~/.vim/plugged')
Plug 'preservim/nerdtree'
Plug 'fatih/vim-go'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'lifepillar/vim-solarized8'
Plug 'altercation/solarized'
call plug#end()
syntax on
filetype indent plugin on
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
set background=dark
colorscheme solarized
但是,当打开vim
时:
▶ vim ~/.vimrc
Error detected while processing /Users/pantelis/.vimrc:
line 20:
E185: Cannot find colour scheme 'solarized'
Press ENTER or type command to continue
知道为什么找不到配色方案吗?
编辑:仅作记录,这里是PlugStatus
的输出
您已经安装了 solarized8
,因此,请使用:
colorscheme solarized8
altercation/solarized
不是 vim 脚本库。相反,它是曝光颜色项目存储库,因此 Plug 不会加载预期的 vim-脚本。即,您的 vim.
中未安装日晒配色方案
我已经通过 vim-plug
安装了 altercation/solarized
colorscheme。
这是我的 ~/.vimrc
call plug#begin('~/.vim/plugged')
Plug 'preservim/nerdtree'
Plug 'fatih/vim-go'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'lifepillar/vim-solarized8'
Plug 'altercation/solarized'
call plug#end()
syntax on
filetype indent plugin on
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
set background=dark
colorscheme solarized
但是,当打开vim
时:
▶ vim ~/.vimrc
Error detected while processing /Users/pantelis/.vimrc:
line 20:
E185: Cannot find colour scheme 'solarized'
Press ENTER or type command to continue
知道为什么找不到配色方案吗?
编辑:仅作记录,这里是PlugStatus
您已经安装了 solarized8
,因此,请使用:
colorscheme solarized8
altercation/solarized
不是 vim 脚本库。相反,它是曝光颜色项目存储库,因此 Plug 不会加载预期的 vim-脚本。即,您的 vim.