开发者

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

开发者 https://www.devze.com 2023-02-12 03:26 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号