On 2010-08-03, Tim Johnson wrote:
> * Tim Johnson <[email protected]> [100803 17:12]:
> > I have just started working with php, so I have no previous
> > experience as a metric.  I have downloaded and installed piv.vim.  I
> > have the following in my .vimrc: let g:DisableAutoPHPFolding = 1
> > 
> > Yet, vim insists on automatically folding php functions. I hate this
> > feature, it is very annoying. How can I disable it? I can verify
> > that g:DisableAutoPHPFolding is set to 1 in any of the files in
> > which folding occurs.
>   I have completely removed all piv files from my .vim and 
>   I still have this problem. Really sucks!
>   So, I guess this is coming from vimruntime somewhere and
>   I don't know how to look. Really spoils the vim experience
>   for me.

By default, vim will open any file for which folding is enabled with
the folds closed.  See

    :help foldlevel
    :help foldlevelstart

To have all files open with folds open, put this in your ~/.vimrc:

    set foldlevelstart=99

To have just PHP files open with folds open, put this in
~/.vim/after/ftplugin/php.vim:

    setlocal foldlevel=99

Regards,
Gary

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

Reply via email to