Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VIM Color scheme not loading by default

Tags:

vim

macvim

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 
like image 934
kush Avatar asked Apr 14 '10 13:04

kush


People also ask

How do I change vim color scheme permanently?

How to Set Default Vim Color Scheme. Changes you have made to the color settings are not permanent. Once you close Vim, the color scheme returns to the default settings. To make the changes permanent, modify Vim's configuration file with the wanted color settings.

How do I enable color scheme in vim?

You can change color schemes at anytime in vi by typing colorscheme followed by a space and the name of the color scheme. For more color schemes, you can browse this library on the vim website. You can enable or disable colors by simply typing "syntax on" or "syntax off" in vi.

Where are vim default color schemes stored?

View preinstalled color schemes Some color schemes are already installed on your system. You can find those color schemes in the /usr/share/vim/vim*/colors directory as . vim extension.

How do I change the theme color in vim?

Listing available color schemesAfter typing the command, press “Tab”. This will open a list of all the available color schemes. If you keep pressing “Tab”, Vim will cycle through all of them.


2 Answers

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

like image 132
Geoff Reedy Avatar answered Sep 18 '22 16:09

Geoff Reedy


Sometimes it helps to put the colorscheme at the end of the _gvimrc .gvimrc file which is read (after SYNTAX ON). Also be sure that HOME is read. Sometimes gvim still reads from the installation path.

like image 21
edlich Avatar answered Sep 18 '22 16:09

edlich