denis wrote:
> Hello, Is there a way to hilight different portions of statusline
> using different colors? Thanks!
yes, define as much of the colors User1 to User9 as you need different
colors and put the part of statusline you want to colorize differently
between %#* and %*, where # is a digit. For example, my statusline is
set to
%<%f%=\ [%1*%M%*%{','.&fileformat}%{&fileencoding!=''?','.&fileencoding:''}%R%Y][%6l,%4c%V]\ %3b=0x%02B\ %P
and I have the following command somewhere in my scripts
highlight User1 gui=NONE guifg=#ff0000 guibg=#d0d0e0
The "%1*%M%*"-part in the statusline option displays the modified flag
with red on a light greyish background.
Regards,
Jürgen
--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)