[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vim
Subject:    Re: automatically opening folds
From:       "Antoine J. Mechelynck" <antoine.mechelynck () belgacom ! net>
Date:       2002-12-11 23:09:35
[Download RAW message or body]

Emmanuel Touzery <emmanuel.touzery@wanadoo.fr> wrote:
> Subject: Re: automatically opening folds
> Date: Wed, 11 Dec 2002 19:09:43 +0100
> From: Emmanuel Touzery <emmanuel.touzery@wanadoo.fr>
> To: "Dan Sharp" <dwsharp@hotmail.com>
>
> On Wednesday 11 December 2002 16:55, you wrote:
> > From: Emmanuel Touzery <emmanuel.touzery@wanadoo.fr>
> >
> > > When I start vim, the cursor is automatically positionned on the
> > > position it
> > > was last time i used the file (macro taken in
> > > /usr/local/share/vim/vim60/vimrc_example.vim). However, if I was in a
> > > fold, i
> > > have each time to enter zo to open the fold. Is there a way that vim
> > > could do
> > > this for me? I tried to modify the macro but couldn't get it to work.
> >
> > See if adding
> >
> > > set foldopen+=jump
> >
> > in your .vimrc helps.  Take a look at :he 'foldopen' for the various
> > values.
>
> i think that foldopen+=jump didn't fix it, but foldopen=all did!
> i'll look tomorrow which value is the one I want to add.
>
> > Dan Sharp
>
> emmanuel

I believe it's :set foldopen +=mark , because "mark number zero" is "the
cursor when vim was last exited" as saved in the viminfo file. However, mark
is part of the default value of 'foldopen'. Dong :verbose set foldopen? will
tell you where it was (last) altered.

    see
        :help :verbose
        :help 'foldopen'
        :help E283

Tony.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic