I am developing a gVim plugin that manages/reorganizes panels, buffers and tabs.

However, while most programmatic re-arranging take milliseconds, they can still look very messy to the eyes while you see re-positionings, resizings, etc take place. Specially the more complex ones.

So, my question: is there a way to programaticaly pause gVim from rendering/refreshing/showing changes to the screen and then also grammatically unpause it?

If not natively, are there any workarounds?

My main focus gVim, but if a solution is only possible for Vim, I can live with that too.

  • This question would be easier to answer if you provided enough information so others could reproduce your issue.
    – Friedrich
    Commented Sep 22, 2023 at 5:57

1 Answer 1


I would try:

set lazyredraw

Remark: in my experience it has only an effect on Vim and not on gVim.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.