On Jan 5, 5:25 am, Bram Moolenaar <[email protected]> wrote: > I haven't looked at the details, but if the problem is that folding is > being updated while inserting text, we could postpone the updating until > Insert mode is ended. The cursor line won't be folded anyway, and > typing more text is likely to change folds again. Moving the cursor > also is counted as leaving Insert mode, this is in stop_insert(). >
You're talking only about waiting to update the syntax folding, not the syntax highlighting, correct? I really like the idea of postponing the update of the folding. First, there's the speed issue mentioned above. Secondly, I often get in the situation where I have carefully closed various folds in my file, then go to insert a comment or something else that opens a fold, and all the folds later in the file get opened automatically. Waiting to update the folds would potentially help or solve both these issues. I don't like the idea of waiting until ending insert mode for updating syntax highlighting, though. I think it would eliminate one of the most useful features of syntax highlighting, which is a limited on-the- fly syntax check. You were just talking about the folding, correct?
-- You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php
