On Feb 4, 7:14 am, Chris Sutcliffe <[email protected]> wrote:
> > I can't reproduce the problem. Do you know the exact steps I have to
> > take to do it?
>
> I can reproduce it by editing a cpp file with foldmethod=syntax,
> typing 'zO' to open a fold, go in to the previously folded function
> and type ':w' and the fold is closed.
>

Following these steps does not reproduce the problem for me, running
the "Cream" install on Windows which is now up to 7.2.356.

Thinking maybe something in my config was compensating for something,
I tried again:

gvim -N -u NONE -i NONE
:set rtp-=$HOME/vimfiles
:set rtp-=$HOME/vimfiles/after
:filetype plugin indent on
:syntax on
:e test.c
:set fdm=syntax

I then open a fold for a function, edit the function, and :w.

The fold continues to stay open.

Maybe there's something in YOUR config causing the issue? Can you
reproduce with none of your customizations, as I have tried?

-- 
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui