VIM Color scheme not loading by default

2019-03-11 14:40发布

When I do

:colorscheme vilight 

it loads the color scheme fine.

So I added

colorscheme vilight

to my .vimrc but its not loading it on start. Am I missing something?

Also in my config

set background=dark 
syntax on
colorscheme vilight 
set lines=60 columns=200

标签: vim macvim
10条回答
Melony?
2楼-- · 2019-03-11 15:23

For Macvim, the solution would be add the following into your .vimrc:

let macvim_skip_colorscheme=1

Then it will respect your choice in .vimrc.

查看更多
虎瘦雄心在
3楼-- · 2019-03-11 15:29

If you are using MacVim I had problems loading downloaded color schemes too. I found out that if you move the color schemes to:

/Applications/MacVim.app/Contents/Resources/vim/runtime/colors

Then it would work in your .gvimrc

查看更多
Viruses.
4楼-- · 2019-03-11 15:34

Are you using gvim? It is possible that your .gvimrc or the system's gvimrc file is overriding the colorscheme selection from your .vimrc.

查看更多
Animai°情兽
5楼-- · 2019-03-11 15:34

Had the same problem. Commenting out set background=light in file .gvim fixed the issue for me.

查看更多
登录 后发表回答