On Fri, 12 Feb 2016, [email protected] wrote:
Date: Fri, 12 Feb 2016 20:11:56
From: [email protected]
To: [email protected]
Subject: Re: another folding bug recently introduced?
On Fri, 12 Feb 2016, Christian Brabandt wrote:
Date: Fri, 12 Feb 2016 00:29:45
From: Christian Brabandt <[email protected]>
To: [email protected]
Subject: Re: another folding bug recently introduced?
On Fr, 12 Feb 2016, Christian Brabandt wrote:
the problem is that somewhere in the initialization routines,
foldmethod is now being forced to syntax. if i manually reset the
foldmethod to marker, all is well. it appears that the modeline is
ignored.
Yes, zsh syntax just recently enabled foldmethod=syntax. I'll fix that.
Please check, if latest version from https://github.com/chrisbra/vim-zsh
fixes your issue.
this fixes my fold issue.
final followup: it is also possible to address this issue entirely from
userspace by a simple reordering of options in the vim modeline. my
previous modeline was:
#-vim-modeline
vim:fenc=utf-8:foldmarker={{{{,}}}}:foldmethod=marker:ft=zsh:nocrb:noscb:nowrap:sw=4:syn=on:ts=4:tw=0:wm=0
by changing it to the following, all is well even without the patch to zsh
syntax.
#-vim-modeline
vim:ft=zsh:syn=on:foldmethod=marker:foldmarker={{{{,}}}}:fenc=utf-8:nocrb:noscb:nowrap:sw=4:ts=4:tw=0:wm=0
i mention this because changes in zsh syntax are not the only syntax
plugin that affects folding. so, judicious ordering of option placement
in the modeline can successfully counter some unwanted option defaults
found in syntax files.