Paul Lussier <pll@lanminds.com> wrote:
> Seriously, you should be able to view the file just fine. The only
> thing the Emacs outline-mode does is allow you to do things like
> collapse and expand the various sections.
For what it's worth, vim 6.x supports something like this, except
it's called "folding".
For example this simplistic setting might be useful :
set foldmethod=expr
set foldexpr=getline(v:lnum)=~'^$'&&getline(v:lnum+1)=~'^\\*'?'<1':1
altough it doesn't do nested sections.
With a little bit of tweaking in one's ~/.vimrc, this
could even be set by default on all files where the first line
contains "-*- outline -*-". In fact this is likely to have been done
before.
But IIRC foldexpr can't be set from a modeline -- emacs has to be better
for something. :-)
> For example, you'll see things like:
>
> * Header 1
> some text
> ** Header 2
> some other text
> *** Header 3
> a bunch of text
> more text
>
> outline mode will allow you to collapse all the '***' levels if you
> want so that you only see:
> * Header 1
> some text
> ** Header 2
> some other text
> *** Header 3 ...
>
> It's just a more convenient way to write things in outline mode for
> Emacs users. The resultant file is still 100% plain ascii text, and
> doesn't look any different regardless of what editor you use. It's
> the outline-mode macro which makes things look different based on the
> '*' prefix of lines.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 31 18:18:50 2002