> 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?
> Thanks!
> Nathan

You could try defining your own colour in rgb.txt (:help rgb.txt), 
for example, I use this:

  0   96 255            BobBlue

Then in my colour scheme definition I use it in the normal way like this:

hi SpecialKey guifg=BobBlue ctermbg=DarkBlue ctermfg=White

However, there are two problems with this approach, perhaps others can help or
provide a better solution?

1) rgb.txt apparently has to be in $VIMRUNTIME and not vimfiles\, so can get 
lost
when you upgrade.  I couldn't find a better place to define the colour. (The 
help
suggests defining its location using rgb_file for FVWM configuration
files (:helpgrep rgb_file).  I haven't looked into it in great detail.)

2) As you can see some colours don't work in some terminals, my colour
doesn't work in XP cmd.exe terminal vim.  I suppose ymmv depending on which
terminal you're using, and whether it can handle your particular colour.

regards,
Geoff

 
 
 
 
Thomson Financial Limited, a Thomson Reuters company, is a company incorporated 
under the laws of England and Wales (registered number 2012235) having its 
registered office and address for service at Aldgate House, 33 Aldgate High 
Street, London, EC3N 1DL, UK.
This e-mail is for the sole use of the intended recipient and contains 
information that may be privileged and/or confidential. If you are not an 
intended recipient, please notify the sender by return e-mail and delete this 
e-mail and any attachments.

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

Reply via email to