简体   繁体   中英

vim from terminal always defaults colorscheme and how to start gvim in fullscreen?

I'm on windows 7. I've installed vim73 which also comes with gvim.

I downloaded a colorscheme and set it like this in my _vimrc file which lies in the root of my c:\\program files\\vim

:colorscheme wombat

When I run gvim the colorscheme works but when I execute vim from DOS then I just runs the default colorscheme. When in vim off of DOS if I type :colorscheme wombat nothing happens.

One last thing when I open gvim how can I make it open fullscreen.

Thanks

To answer your second question and if you're on windows you can use:

autocmd GUIEnter * :simalt ~x

in your _vimrc to start gvim in fullscreen.

I can only guess why your colorscheme does not work inside your windows terminal, but maybe the terminal does not support the color range used by the scheme and it defaults to standard colors. Maybe this documentation can help you.

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