spf13 / PIV

PHP Integration environment for Vim
250 stars 36 forks source link

g:DisableAutoPHPFolding not working #20

Closed renanivo closed 9 years ago

renanivo commented 11 years ago

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

hackdon commented 11 years ago

edit PIV/ftplugin/php.vim on line 41

let php_folding = 0

adolfoabegg commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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

bpearson commented 10 years ago

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

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