Wednesday, October 5, 2011

Re: How to conceal entire line including newline?

Hi AK!

On Mi, 05 Okt 2011, AK wrote:

> On 10/05/2011 02:41 PM, Christian Brabandt wrote:
> >On Mi, 05 Okt 2011, AK wrote:
> >>Hi, I want to have an overview of code without comments or
> >>docstrings, with their lines completely omitted when in
> >>conceal mode, without showing them as blank lines.
> >>
> >>How can I do that?
> >
> >You can't. Use folding to hide them away.
> >
> Wow, why is conceal so bizarrely hindered? Even before
> conceal feature was created, I've often thought that it
> would be extremely useful to temporarily conceal some
> types of lines.

Well you can hide away lines, but I think you won't be able to
completely hide away the new line character. This makes sense, as for
this folding can be used.

> That just seems completely inexplicable to me.
>
> Folding, of course, does not hide lines, it just folds
> them. And I do need to still have folding e.g. of methods
> and classes while docstrings and comments are concealed.

Folding is displaying several lines as a single line. That's what I
would call hiding. What is your problem with folding away lines?

Mit freundlichen Grüßen
Christian

--
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

No comments:

Post a Comment