Speed improvement with folding enabled

The 'foldmethod' was being reset every time the cursor entered a vimwiki, causing an unnecessary large delay. So it was changed to set it only the first time the buffer is loaded into a window. This greatly improves performance when switching between vim tabs. Fold settings are also reapplied after using 'diffoff'. Added test/ directory with sample file and instructions for testing this change.

Fixes #580
This commit is contained in:
Marcelo D Montu
2019-04-22 11:39:11 -03:00
committed by Rane Brown
parent 510c149512
commit 2b6fa274a8
3 changed files with 10957 additions and 2 deletions

10923
tests/resources/delay.wiki Executable file

File diff suppressed because it is too large Load Diff