On Saturday, April 13, 2013, Jostein Berntsen wrote:

> On 13.04.13,07:57, Ben Fritz wrote:
> > On Saturday, April 13, 2013 6:54:05 AM UTC-5, jostber wrote:
> > > I have not looked much into the conceal function, but it looks very
> useful.
> > >
> > > Is it possible to set it up so that it can conceal everything in the
> text
> > >
> > > except the selection by using a mappping?
> > >
> >
> > Yes, it's possible, but probably not too easy. Conceal depends on syntax
> highlighting which is mostly meant to be set up once and left alone. Your
> mapping could do a :syn clear and then set up a rule to conceal everything
> but a pattern match, though.
> >
> > Easier would be to use folding. Then you can fold away lines not
> matching the pattern. You'd still have the entire line text where the
> pattern matches, but with 'hlsearch' turned on, it's still easy to see
> where your match is.
> >
> > http://vim.wikia.com/wiki/Folding_with_Regular_Expression
> >
>
> Thanks. I didn't get the fold search to work exactly as I wanted. Would
> have
> been interesting to what a conceal function might do here.
>
>
> Jostein
>
> Jostein, while this doesn't exactly answer your question, Christian
> Brabandt's Nrrwrgn plugin (https://github.com/chrisbra/NrrwRgn) does
> something like that. Thought I'd just mention it.


  Ps. Sorry if this email is formatted oddly, I'm sending it from my phone.


    Ethan Alan

> --
> --
> 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 [email protected] <javascript:;>.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to