Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

g:DisableAutoPHPFolding not working #20

Open
renanivo opened this Issue · 5 comments

6 participants

@renanivo

When I put let g:DisableAutoPHPFolding = 1 in my .vimrc, it works for the first PHP file I open, but it is ignored in the next attempts.

I tested it in other computers with the same result.

I'm using MacVim version 7.3

@cbxero

edit PIV/ftplugin/php.vim on line 41

let php_folding = 0

@adolfoabegg

Thank you @dongxiong that solved the folding problem.
The weird thing is that having this line in .vimrc

let g:DisableAutoPHPFolding = 1 

used to work

@abimaelmartell

im having this same problem, do i have to edit the PIV/ftplugin/php.vim?
I added this as a submodule to my dotfiles, and i dont think is a good idea edit the file :worried:

@kchr

I have the same question. How do we use local (own) settings for php.vim without modifying the plugin code?

@bpearson

to use local settings, PIV/ftplugin/php.vim should read:

if (!exists('php_folding'))
let php_folding = 1
endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.