qqzsxyz / vimwiki

Automatically exported from code.google.com/p/vimwiki
0 stars 0 forks source link

Sintax sync suggestion #421

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Depending on the size/number of folds in a vimwiki file the syntax highlight 
doesn't works, i.e., after opening a wiki file and opening one of the 
bottommost fold it can be noticed that there is no highlight.

This behavior is explained on vim faq 24.8: 
http://vimhelp.appspot.com/vim_faq.txt.html#faq-14.13

After some tests I found that including the following line near the end of 
syntax/vimwiki.vim solves the problem without adding any noticeable performance 
hit:

     syntax sync minlines=200

I couldn't find any other attempt to perform sintax sync on the plugin. As this 
synchronization can't be changed from modelines, I think the syntax file is the 
way to go.

Original issue reported on code.google.com by marcmo...@gmail.com on 10 Dec 2013 at 6:07

GoogleCodeExporter commented 8 years ago
Correction on the link: http://vimhelp.appspot.com/vim_faq.txt.html#faq-24.8
(I couldn't an edit issue button)

Original comment by marcmo...@gmail.com on 10 Dec 2013 at 6:09