Closed gregslu closed 11 years ago
Yes. This is feature. Because, if foldmethod is "expr" or "syntax", auto completion will be too heavy.
PS: I changed this feature to enable 1000+ lines file only.
I want to fix it. But this is Vim internal problem...
Hi again, maybe create global variable to let user disable this foldmethod change even if it is 'too heavy', or let user pick the number of lines at which this will occur (now it's hard coded 1000) ? Also if I remember correctly, neosnippet is also changing fold method, so I would love to see this fix there too.
I removed changing foldmethod feature in neosnippet.
Hi again, maybe create global variable to let user disable this foldmethod change even if it is 'too heavy', or let user pick the number of lines at which this will occur (now it's hard coded 1000) ?
But I don't want to add option. Because neocomplcache has many many options...
Ok, You know better :) Thank You for the fix!
In ver.8 branch, it is improved. neocomplcache restore foldmethod on BufWritePost event.
Hi, when foldmethod is set to expr, neocomplcache sets it to manual, foldexpr to 0 and leaves it that way, which breaks creation of new folds in the file. Ps. I use custom foldexpr: https://github.com/viszu/vim-pysior/blob/master/ftplugin/python/folding.vim