Friday, July 23, 2010

Re: Cursor line and cursor column highlighting

On 23/07/10 10:28, Frans Grotepass wrote:
> Hi all,
>
> I just added cursor line and column highlighting. My standard background
> colour is black and I only want the colour of the line and column to change to
> the set colour when the background was black. This will make the cursor line
> and column highlighting less intrusive (with the value set to for instanced
> grey9 in gvim).
>
> Thanks in advance.
>

see
:help 'cursorcolumn'
:help 'cursorline'

You could for instance add

set cuc cul

in your vimrc, and

if &bg == 'dark'
hi CursorLine gui=NONE guibg=#333333
else
hi CursorLine gui=NONE guibg=#CCCCCC
endif
hi! link CursorColumn CursorLine

in your own-coded colorscheme if you have one, or failing that in your
vimrc, but not before the ":syntax on" command and also not before any
colorscheme.


Best regards,
Tony.
--
BRIDGEKEEPER: What is your favorite colour?
GAWAIN: Blue ... No yelloooooww!
"Monty Python and the Holy Grail" PYTHON (MONTY)
PICTURES LTD

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

Post a Comment