vim - gvimrc partly not taken into account (Windows 7) -
i have installed version 7.4 of gvim windows. have created gvimrc file following content:
set tabstop=2 " set tabstop 2 spaces set shiftwidth=2 " shiftwidth should match tabstop set expandtab " convert tabs <tabstop> number of spaces set smartindent " let vim code indention highlight comment guifg=#409040 highlight specialcomment guifg=#409040 highlight string guifg=blue highlight colorcolumn guibg=lightgray set colorcolumn=81 set tw=0
some lines taken account. example: set tabstop=2
other lines not taken account. example: , highlight comment guifg=#409040
if run gvimrc file later :so $mygvimrc
, lines taken account.
so, what's wrong these faulty lines? overwritten else?
note: gvimrc file works fine on ubuntu , mac.
that should work, though it's cleaner create own colorscheme instead of selectively overriding definitions. suspect executes after .gvimrc
(maybe triggered event such guienter
), , (re-)sets color definitions. output of :scriptnames
might help.
if cannot find root cause, , don't want write own colors/myscheme.vim
file, try
:autocmd guienter,colorscheme * highlight comment guifg=#409040 ...
Comments
Post a Comment