Sunday, May 6, 2012

Highlighting block of text

I'd like to highlight an arbitrary block of text even when
normal syntax-base highlighting is in effect.
Now, one can highlight a block of height 1 using matching:
:hi Green ctermbg=Green
:match Green /\%10l\%30c.*\%40c\%10l/
:match none
But what I'd like to do is for a block with height
greater than 1; something like what can be done
with Cntl-V visual block selection but without using
visual selection.
I've search the net without finding a solution.
Is it possible?
Thanks.

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