I have been experimenting with colours for my statusline recently and I put the plugin file in the bundle
directory. I use pathogen
which loads everything up from that directory. But, Even though the status line plugin is getting sourced, the colours are not appearing.
When I manually source the file from GVim it adds all the colours but its not doing this automatically when the plugin loads up. This is happening only in Gvim. Vim in Powershell and Cygwin that use the same plugin show the statusline colours properly when they start up.
What could be the reason for this and what can I change in the plugin to get it working in gvim?
Edit: I have the following line for the colorscheme in my gvimrc
, when I remove it from gvimrc and add it in vimrc
, everything works fine.
colorscheme solarized
Github link for the plugin's source - Vim Streamline
#HighlightName#
insidestatusline
correct? Could you add the code of the plugin you are writing? People may be able to replicate the issue.highlight
groups defined in the plugin and I am using them for the colors. I've added the github link to the plugin.:highlight User1
say?hi User1 ctermfg=blue ctermbg=yellow guifg=blue guibg=yellow
in the plugin file but when I run it ingvim
it saysUser1 xxx cleared
. Looks like something is removing the previously set highlights.colorscheme solarized
in mygvimrc
and moved it tovimrc
and everything's fine after that. Apparentlysolarized
is overwriting all the highlight groups that I have defined in my plugin but I am not really sure why that is not happening withvimrc
. What is the order of sourcing the files?