Closed Jeansen closed 7 years ago
What filetype is this? Sounds like (re)setting the syntax triggers this.
I assume something like this. Filetype is Perl. Looks like this does not happen with other filetypes .... at least for those, for which there is no syntax file.
Do you have set perl_fold = 1
manually?
Ah..yes. I am sorry, I did not provide a minimalistic vimrc, yet. On the other hand. I removed per_fold =1
. Now it works (and vim opens the file A LOT faster) :smile:
Cool. Closing this now for then.
Regarding folding speed, see https://github.com/Konfekt/FastFold.
For reference (in case other settings are affected etc(, you could have also used something like the following to override with your setting(s):
augroup my_perl
au!
autocmd Syntax perl set foldmethod=syntax
augroup END
Thank you very much. Well, for me it works so far. Though on the other hand not setting perl_fold removes the ability to use syntax folding for perl.
If I have two windows showing two buffers (or I just create a new empty split) and
:set foldmethod=manual
then this will be reset tofoldmethod=syntax
ifg:diminactive_use_syntax = 1
, whenever I change windows.