Skip to content

fix for upstream issue #177 #178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 19, 2016
Merged

fix for upstream issue #177 #178

merged 1 commit into from
Mar 19, 2016

Conversation

lyokha
Copy link
Contributor

@lyokha lyokha commented Mar 19, 2016

About the other interesting folding issue I mentioned in #177:

I had broken folding when code blocks were too long (more than 150 lines). I found that it had nothing to do with vim pandoc plugin itself but rather with vim's syntax sync feature. To fight with this I added in my .vimrc following line

" avoid possible folding mess on very long code blocks
autocmd FileType pandoc syntax sync minlines=500

and folding got fixed. In theory this setting says that vim must sync at least 500 lines around current cursor position upon loading a buffer (to be more exact when it applies file type pandoc to a buffer) and should make loading time longer, but I did not notice any discomfort. After loading a buffer this setting does not affect anything.

So probably it makes sense to mention this trick somewhere in docs?

fmoralesc added a commit that referenced this pull request Mar 19, 2016
@fmoralesc fmoralesc merged commit ef8e488 into vim-pandoc:master Mar 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants