syntax/vim.vim sources syntax/perl.vim which may set fdm=syntax

2010-07-21 Fir de Conversatie Christian J. Robinson
I just noticed that my 'foldmethod' is getting set to syntax when editing Vim script files, but the syntax/vim.vim file doesn't set that option even if you've enabled syntax folding for Vim code. Since I have let perl_fold=1 in my vimrc, I get this when I do :verbose set fdm? while in a Vim

Re: syntax/vim.vim sources syntax/perl.vim which may set fdm=syntax

2010-07-21 Fir de Conversatie Tony Mechelynck
On 22/07/10 04:35, Christian J. Robinson wrote: I just noticed that my 'foldmethod' is getting set to syntax when editing Vim script files, but the syntax/vim.vim file doesn't set that option even if you've enabled syntax folding for Vim code. Since I have let perl_fold=1 in my vimrc, I get

Re: syntax/vim.vim sources syntax/perl.vim which may set fdm=syntax

2010-07-21 Fir de Conversatie James Vega
On Thu, Jul 22, 2010 at 04:57:57AM +0200, Tony Mechelynck wrote: Note that syntax/perl.vim is well-behaved: what it does at line 57 is :setlocal foldmethod=syntax (not plain :set) so it will only apply to Perl sources and to filetypes which (like Vim scripts) may contain embedded Perl source