On Fri, Jul 10, 2009 at 4:45 AM, TheLonelyStar wrote:
>
>
> Hi,
>
> To change the highlighting of the current line, I have this in my .vimrc:
>  hi CursorLine guisp=NONE   gui=NONE      guifg=NONE guibg=darkgrey
> ctermfg=NONE   ctermbg=darkgrey term=NONE cterm=NONE
>
> My problem is, that darkgrey is not dark enough for me!
> I tried doing something like this:
> ... ctermbg=#0f0f0f ...
> but vim does not accept that (E421: Color name or number not recognized:
> ctermbg=#000f00 term=NONE cterm=NONE)
>
> What can I do?

If you use a 256-color terminal emulator that's properly set up (xterm
using TERM=xterm-256color for instance) you get an extra 232 colors to
play with, 24 of which just make up a greyscale ramp - for instance,

    if &t_Co == 256
        hi CursorLine ctermbg=233
    endif

You might also find the CSApprox plugin useful.

~Matt

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

Reply via email to