On Saturday, April 16, 2016 at 3:48:52 PM UTC-7, Jose Caballero wrote:
> Is it possible to highlight an entire paragraph based on a single line content?
> I would be interested in changing the color of an entire block of
> configuration lines if one of those lines in the block is "enabled =
> False", for example.
>
> I am so new to this (*) that I am not even sure what would be the key
> words to search for it on google.... So any tip or advice is more than
> welcome.
>
> What is a "paragraph"? Also what exactly you mean by "highlight",
>
>
>
>
>
> Fair questions, I guess. I will try to be more clear.
>
>
> I would like to have a VIM syntax file that changes the color or entire paragraphs (a set of lines between two blank lines) if one of the lines in the paragraph matches pattern
> "enabled = False".
>
>
> I hope now I explained myself better.
>
>
> Jose
If you use search hilighting this might do what you want
/\n\(.*\n\)\{-}.*enabled = False.*\n\(.*\n\)\{-}\n
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sunday, April 17, 2016
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment