Hello,
I've spent several hours, but just can't figure out,
why wouldn't Vim 7.0 on my english Win Xp Pro PC
execute the highlight commands from my .vimrc.
I'd like to have my Comments inverted and thus I have:
hi Comment guifg=white guibg=black
in my file "C:\Documents and Settings\afarber\.vimrc"
(fully copied at the bottom of this mail).
When I run ":!cmd" and then "echo %MYVIMRC%"
in the appeared DOS-window then I see:
C:\Documents and Settings\afarber\.vimrc
so my config file is indeed being used.
However when I enter ":verbose hi Comment" I get:
Comment xxx term=bold ctermfg=1 guifg=Blue
Last set from C:\Program Files\Vim\vim70\syntax\syncolor.vim
And only if I load ~/.vimrc explicitly by ":so ~/.vimrc"
I get the inverted Comments displayed and see:
Comment xxx term=bold ctermfg=1 guifg=white guibg=black
Last set from ~/.vimrc
Does anybody please have an idea what's wrong there?
Regards
Alex
PS: And here is my C:\Documents and Settings\afarber\.vimrc:
set showcmd
set hlsearch
set ignorecase smartcase
set tags=tags
set nocompatible
set backspace=2
set viminfo='20,\"50
set history=50
set ruler
set go=mr
set sw=8
"set guifont=-b&h-lucidatypewriter-bold-r-normal-*-15-140-75-75-m-90-iso8859-9
set guifont=Courier_New:h12:b
syntax on
hi Cursor guifg=black guibg=green
hi Visual guifg=yellow guibg=black
hi Comment guifg=white guibg=black
hi Identifier guifg=black
hi Constant guifg=red
hi Statement guifg=blue
hi PreProc guifg=black gui=underline
hi Special guifg=red
hi Type guifg=blue
"if has("multi_byte")
"set encoding=utf-8
"setglobal fileencoding=utf-8
"set bomb
"set termencoding=cp1251
"set fileencodings=ucs-bom,cp1251
"else
"echoerr "Sorry, this version of (g)vim was not compiled with +multi_byte"
"endif
au BufWinLeave *.pl,*.pm,*.c mkview
au BufWinEnter *.pl,*.pm,*.c silent loadview