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
Do you have
syntax on
in your.vimrc
?I've had this problem too when I took a .vimrc from gVim for windows and used it with MacVim.
I noticed that the vi that comes with snow leopard complains about lines ending with ^M (aka carriage return, or "\r"). After converting the dos-style newlines to unix-style the problem was solved. (*)
MacVim does not complain about this, but apparently does have a problem loading the .vimrc when it contains dos-style newlines.
(*) - Dos/windows style new lines are composed of a carriage return and a line feed ('\r\n'), unix style newlines contain only a line feed ('\n').
Just add line "source .vimrc" in the end of .gvimrc
For MacVim users, deleting the following native vimrc and gvimrc probably works.
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.
I have the same problem! MacVim does not load my colorscheme on start. However, vim run from the command line does. Is this a MacVim issue then?
I cleared my .vimrc and just left the colorscheme lines and it still does not work.
However, doing
after startup works.
UPDATE: I found out that MacVim loads both .vimrc and .gvimrc and in my case, stuff in .gvimrc was the problem.