Thursday, March 4, 2010

Re: Cursor color when there is a warning

On 04/03/10 09:29, Germain wrote:
> Thank you. Your first solution is not very pleasant ;) ! For the two
> following the cursorline become to much dark ... I do not really like
> that.
>
> Looking at your color scheme file, I took the syntax for the Error
> hilight and I simply change the fg color from white to blod red ! For
> the cursorline I did the same as you with a light grey bg. Thus with
> error in bold red on the cursorline in lightgrey, errors are clearly
> visible.
>
> What do I win if I put all my hilight in a color scheme ? Is it just
> more elegant or really important for bugs or mistakes ? Actually I do
> not understand a large part of your one ... and I am a little bit
> afraid to try to do one like that.

If you put all your highlight changes (compared to the default) in a
colorscheme with a name, then you can not only test a different
colorscheme and come back to your usual, you can also turn syntax
highlighting off and on without losing your "special" highlights, you
can change one highlight group temporarily (as I did for the CursorLine
group while writing my previous post in this thread, to check if what I
was saying made sense) then easily come back to your "normal" colours,
etc. *And* if you decide to change something in your colour scheme, you
can apply it "on the fly" without restarting Vim -- just save the
modified colorscheme and do ":syntax enable" or ":syntax on" -- I'm a
little fuzzy on the difference between the two.

In summary: I believe that it is both more elegant and easier to use
once done. Of course there is some initial investment (you must write
the colorscheme in the first place).

>
> That is my current vimrc file, if you have advise for me I will be
> very glad !
>
> http://germain.salvato-vallverdu.perso.sfr.fr/vimrc

...salvato-vallverdu, fr... Catalunya-Nord?

Maybe I'll look at that vimrc someday, but please, not today.

>
> Best
>
> Germain


Best regards,
Tony.
--
Too much of a good thing is WONDERFUL.
-- Mae West

--
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: