On 03/03/10 15:42, Germain wrote:
Hello all !
Sorry if this message has been ever send, I do not know if my mail
work or not ...
I recently set on the cursorline in vim. The problem is that if I do a
mistake on the line, for exemple a closing parenthse, it appears in
white foreground whith a grey95 background and it is difficult to see
it. If I do not use the cursorline that type of mistake will be with a
red background and a white foreground. How can I said to vim that the
warning background should be more important than the cursorline
background ?
Method I: Don't set 'cursorline'.
Method II: Set the CursorLine highlighting to something that will still
let you know what the underlying colours were, for instance
hi CursorLine term=NONE,reverse
\ cterm=NONE,reverse ctermfg=NONE ctermbg=NONE
\ gui=NONE,reverse guibg=NONE guifg=NONE
which will show in red on white what would otherwise be white on red, or
hi CursorLine term=NONE,underline
\ ctermfg=NONE ctermbg=NONE cterm=NONE,underline
\ guibg=NONE guifg=NONE gui=NONE,undercurl guisp=yellow
which, in gvim, will show the cursor line in normal colours but with a
wavy yellow underline added. (You might, however, not like this second
example if you use the Vim spell checker, which uses wavy underlines
quite a lot.)
BTW, I see you already have a number of :highlight settings. Maybe it is
time to start your own color scheme. Mine,
http://users.skynet.be/antoine.mechelynck/other/almost-default.vim ,
started that way and slowly grew over the years. This way, if I try new
highlights (set from the command-line), ":syn enable" will go back to my
colorscheme rather than to the Vim default.
This is a part of my vimrc file :
set cursorline
colorscheme default
highlight IncSearch term=underline ctermfg=NONE ctermbg=NONE
guifg=NONE guibg=NONE
highlight Search term=underline ctermbg=LightGreen ctermfg=NONE
guibg=LightGreen guifg=NONE
highlight Cursor guifg=white guibg=grey30
highlight CursorLine term=underline cterm=underline guibg=grey95
highlight CursorColumn term=NONE ctermbg=grey guibg=grey95
highlight StatusLine term=reverse,bold cterm=reverse,bold gui=italic
guibg=SteelBlue guifg=white
highlight StatusLineNC term=reverse cterm=reverse gui=italic
guibg=grey75 guifg=SteelBlue
Thanks for your help
Best regards,
Tony.
--
You don't sew with a fork, so I see no reason to eat with knitting
needles.
-- Miss Piggy, on eating Chinese Food
--
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