On 9/10/07, Tony Mechelynck <[EMAIL PROTECTED]> wrote:
> [...]
>
> The default.vim colorscheme simply invokes the Vim or gvim defaults, whatever
> they may be in the Vim version currently running; it has no ":highlight"
> statements: so the patch won't go into the default colorscheme
> ($VIMRUNTIME/colors/default.vim) which is not even sourced when you run Vim
> without a colorscheme, but in the internal default values.

I knew that. But in fact modifying the internal default values are
also as easy as modifying the external ones. There are two ways for
working around this problem, the first way is making the "Error"
highlight darker, the other way is making the "CursorLine" and
"CursorColumn" darker.

But the first way will probably failed in many situations because
sooooo many syntax files contain "guifg=White". So I think I'll use
the second method:

Index: src/syntax.c
===================================================================
--- src/syntax.c        (revision 513)
+++ src/syntax.c        (working copy)
@@ -6267,9 +6267,9 @@
 #endif
 #ifdef FEAT_SYN_HL
        CENT("CursorColumn term=reverse ctermbg=LightGrey",
-            "CursorColumn term=reverse ctermbg=LightGrey guibg=Grey90"),
+            "CursorColumn term=reverse ctermbg=LightGrey guibg=Grey"),
        CENT("CursorLine term=underline cterm=underline",
-            "CursorLine term=underline cterm=underline guibg=Grey90"),
+            "CursorLine term=underline cterm=underline guibg=Grey"),
 #endif
 #ifdef FEAT_AUTOCMD
        CENT("MatchParen term=reverse ctermbg=Cyan",

>
> >
> >> In fact, I have already modified my personal colorscheme (with mixed 
> >> results)
> >> because I encountered bad readability with the highlighting + cursorline
> >> combination (but didn't want to miss the improved readability of 
> >> cursorline).
> >
> > If your modified colorscheme is included in the official colorschemes,
> > I think you should post your patches to the mailing list. Thanks~
> >
> >> -- ingo
>
> Writing a personal colorscheme is easy: I have my own
> ~/.vim/colors/almost-default.vim. Changing the highlighting defaults in the C
> or C++ code is a different cup of tea.

We say a plate of vegetable and the Americans say a piece of cake.

>
>
> Best regards,
> Tony.
> --
> The nice thing about standards is that there are so many of them to
> choose from.
>                 -- Andrew S. Tanenbaum
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui