ings for a couple of days
now, I hope posting the question here brings the answer. Is it possible to
highlight like this in Vim?
Another thing: is it possible to fold the affected lines?
Thanx a lot,
Krawell
--
View this message in context:
http://www.nabble.com/Highlight-whole-line-if-
krabu wrote:
> Hi,
>
> I need to highlight lines in grey text color, if there is not the keyword
> "column" OR if there is the keyword "noshow". I want the whole line to be
> affected, but the keywords are not at the beginning of the line.
>
> After reading the manual and trying out a lot of thing
krabu wrote:
> I need to highlight lines in grey text color, if there is not the keyword
> "column" OR if there is the keyword "noshow". I want the whole line to be
> affected, but the keywords are not at the beginning of the line.
One way to do it:
Add two highlight groups RegularLine, GreyLine
> I need to highlight lines in grey text color, if there is not the keyword
> "column" OR if there is the keyword "noshow". I want the whole line to be
> affected, but the keywords are not at the beginning of the line.
You can use
:match Comment /^\%(\%(column\|noshow\)\...@!.\)*$/
(using w
On Mon, Feb 16, 2009 at 6:40 AM, krabu wrote:
> I need to highlight lines in grey text color, if there is not the keyword
> "column" OR if there is the keyword "noshow". I want the whole line to be
> affected, but the keywords are not at the beginning of the line.
This is exactly the problem that
..@!.\)*$/ (without %) does the same...
--
View this message in context:
http://www.nabble.com/Highlight-whole-line-if-keyword-is-not-there-tp22028577p22049493.html
Sent from the Vim - General mailing list archive at Nabble.com.
--~--~-~--~~~---~--~~
You received this mess