In some situations, editing a file with syntax folding turned on can
be greatly improved by temporarily disabling the syntax folding
with :set foldmethod=manual and then restoring it to "syntax" when
done with edits that will mess with folding. The easiest way for me
was to tie into the InsertEnter and InsertLeave autocmds. CursorHold
and CursorHoldI may be additional options if your edits are fast and
close together enough.

This may or may not have any impact on the preformance in the OP's
case, but at least for C files, this works a lot better for me.

Of course, I also have automatic closing of (), [], and () groups set
up so when I leave insert mode I have normally automatically closed
any new folds.

http://vim.wikia.com/wiki/Keep_folds_closed_while_inserting_text

-- 
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

Raspunde prin e-mail lui