Monday, April 26, 2010

Re: How to display underline on current line?

On 26/04/10 13:58, robert song wrote:
> Hello, everyone.
> Is there any method to display underline on current line,
> I think it's very useful for code review.
>
> Just like following format:
> void main() {<- current line
> --------------<- underline
> }
>
> Regards,
> robert
>

I use the following to highlight the current line & column: I use
underline in the console, a very light grey (not very different from
"Normal" white) in the gui but of course you can vary at will.

In my vimrc:

if exists('+cursorline')
set cursorline cursorcolumn
endif

In my home-written colourscheme:

hi CursorLine cterm=NONE,underline guibg=#F4F4F4
hi! link CursorColumn CursorLine


Best regards,
Tony.
--
GUARD #1: What, ridden on a horse?
ARTHUR: Yes!
GUARD #1: You're using coconuts!
ARTHUR: What?
GUARD #1: You've got two empty halves of coconut and you're bangin' 'em
together.
The Quest for the Holy Grail (Monty
Python)

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

Subscription settings: http://groups.google.com/group/vim_use/subscribe?hl=en

No comments:

Post a Comment