简体   繁体   中英

Vim syntax theme; different behavior from .vimrc/colo call

I'd like to load a vim syntax theme from .vimrc.

The strange thing is that the theme looks different when loaded from .vimrc as it does when called from within vim with colo molokai_dark .

The .vim file doesn't have if has("gui_running") or t_Co (only in the 256 color terminal support-section) like mentioned here .

Why is that the case and how can I control this behavior?

thx in advance!

You don't mention / show the actual changes, nor your actual configuration, and the colorscheme itself looks good, so I can only offer a workaround:

You can emulate the "from within Vim" via the following autocmd in your ~/.vimrc :

autocmd VimEnter * colorscheme molokai_dark

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM