vim-pandoc / vim-pandoc-legacy

[UNSUPPORTED/use vim-pandoc/vim-pandoc] vim bundle for pandoc users
143 stars 23 forks source link

recommended .vimrc configuration for improving performance? #57

Closed cboettig closed 12 years ago

cboettig commented 12 years ago

Thanks for making a very nice plugin. Somehow the resource demands on opening somewhat large files with syntax highlighting can make vim unresponsive for several minutes while it cranks away at 100% cpu on a relatively modern machine, making this plugin completely unuseable for me (in terminal mode via gnome-terminal). Perhaps I have some setting in my .vimrc causing this to be so slow? vim is usually such a snappy editor.

fmoralesc commented 12 years ago

Lots of surface there to check in full, but the performance intensive things in vim-pandoc (some highlighting things, mostly; bibliographies can slow down things too) can be disabled. That is documented in the doc/pandoc.txt file. Mostly, try adding

 let g:pandoc_no_empty_implicits = 1
 let g:pandoc_no_spans = 1
 let g:pandoc_no_folding = 1

to your vimrc.