vim - Setting background of GVim -


i working dark background in both vim gvim. however, in gvim dark background not loaded automatically (through .vimrc), stays light , need set automtically every session. see screenshots below.

loading file in vim:

enter image description here

loading file in gvim:

enter image description here

executing set background=dark after loading file in gvim (note set background=dark indeed in .vimrc):

enter image description here

what can cause problem?

as romainl indicates, background option tells vim background color looks like. enable background dark syntax higlighting. seems, you're using gui. consider following in .vimrc:

hi normal guifg=grey guibg=black

hi stands higihglighting. , guifg , guibg stands for, guessed it, gui foreground , background colors.


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -