Highlight whole line if keyword is not there

2009-02-16 Thread krabu
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-

Re: Highlight whole line if keyword is not there

2009-02-22 Thread Charles E. Campbell, Jr.
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

Re: Highlight whole line if keyword is not there

2009-02-16 Thread Andreas Bernauer
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

Re: Highlight whole line if keyword is not there

2009-02-16 Thread Tim Chase
> 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

Re: Highlight whole line if keyword is not there

2009-02-16 Thread Matt Wozniski
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

Re: Highlight whole line if keyword is not there

2009-02-16 Thread krabu
..@!.\)*$/ (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