2011/11/10 Peter Odding <[email protected]>: > Like Ingo I'm sorry I can't get more specific, but that's kind of the > problem: This issue is really hard to diagnose properly because it basically… > seems like syntax folding has some horrible worst case performance which > only shows once in a while, in large buffers, but once it manifests you can > basically give up on using Vim properly. > > When I disable syntax folding and reload the buffer using :edit Vim is > instantly fast again. Strange enough it seems that changing the text folding > options does not have the same effect...
That reminds me of a "bug" I found last week after *years* of painful latex edition. Sometimes, for a reason, editing would get really slow. It'd take a second or two to just go into insert mode. I would solve (temporarily) the issue with :syntax sync minlines=200, until I trigger it again. Here's the fix: " Ok, so the one below *kills* LaTeX edition! Let's never do that damn mistake " again. Do not uncomment! "autocmd BufEnter * :syntax sync fromstart " ensure every file does syntax highlighting (full) The trigger was a shell script doing a remote call to vim and which, in some cases, would reload the file and jump at a given line. A sufficiently big latex file (500 lines) would often be enough to start the slow-down… Since syntax based folding seems to be, well, syntax, I wonder whether you have the same issue as me before… -- Français, English, 日本語, 한국어 -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
