2016-04-16 19:52 GMT+03:00 Jose Caballero <jcaballero.hep@gmail.com>:
> Hello,
>
> I have the feeling I asked this same question about a year ago. If
> that is the case, then I truly apologize. I know, and understand, that
> asking twice the same thing in a mailing list is close to a deadly
> sin.
>
> 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",
though to avoid technical details (highlight may be set via :syntax,
:match, :sign, etc) I would rather ask how exactly you are going to
use this feature: e.g. you know that for this configuration file type
you always need to find disabled sections, or you sometimes search for
them and prefer visual hints over search, or else; also whether
configuration file has syntax highlighting and it should (not) be
kept. I can deduce methods of highlighting such sections based on all
three: :syntax, :match (matchadd()), :sign, all with different
downsides.
>
> (*) being VIM user for years does not make you expert at all. After
> all this time, I am still new.
>
> Thanks a lot in advance.
> Cheers,
> Jose
>
> --
> --
> 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.
--
--
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.
No comments:
Post a Comment