Friday, November 19, 2010

Re: Changing color on the statusline (non-gui)

On 19/11/10 21:05, Kartik Agaram wrote:
> Summary: In non-gui vim, how can I have statuslines for not-current
> windows show "====" without reverse video, but in color?
>
> === Long form
>
> I'm having trouble figuring out how to setup the statusline to my
> liking between :highlight, 'highlight', and 'statusline'.
>
> By default, vim (non-gui version) shows the statusline for split
> windows in reverse video without color.
>
> I can get rid of the reverse video in not-current windows by saying:
>
> :highlight StatusLineNC cterm=none
>
> Now they get a statusline of "=====".
>
> If I want these markings in color, I try:
>
> :highlight StatusLineNC cterm=none ctermfg=blue
>
> But now the "=====" vanishes from the status line. How can I get it
> back but in blue?
>
> Is there a way to configure the "=====" to be say "----" or "_____"?
>
> Thanks,
> Kartik
>

I don't think so, but you can have the current statusline in one colour
and the other ones in a different colour by setting the StatusLine and
StatusLineNC highlights, e.g.

hi StatusLine cterm=NONE ctermbg=darkgreen ctermfg=white
\ gui=bold guibg=green guifg=black
hi StatusLineNC cterm=NONE ctermbg=lightgrey ctermfg=black
\ gui=bold guibg=#060606 guifg=black

Both kinds of statuslines will now be styled according to the
'statusline' option, with no ==== but in different colours.


Best regards,
Tony.
--
It appears that after his death, Albert Einstein found himself working
as the doorkeeper at the Pearly Gates. One slow day, he found that he
had time to chat with the new entrants. To the first one he asked,
"What's your IQ?" The new arrival replied, "190". They discussed
Einstein's theory of relativity for hours. When the second new arrival
came, Einstein once again inquired as to the newcomer's IQ. The answer
this time came "120". To which Einstein replied, "Tell me, how did the
Cubs do this year?" and they proceeded to talk for half an hour or so.
To the final arrival, Einstein once again posed the question, "What's
your IQ?". Upon receiving the answer "70", Einstein smiled and asked,
"Got a minute to tell me about VMS 4.0?"

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment