Pasting a huge amount of text into vim is slow?

前端 未结 4 905
梦毁少年i
梦毁少年i 2021-01-31 03:12

Someone showed me how to do this before but I can\'t figure out what it was now.

I know about :set paste but this is not the problem.

4条回答
  •  悲哀的现实
    2021-01-31 03:55

    In my experience :set syntax=off helps before pasting, see https://askubuntu.com/a/223061/240577 I've seen 'slow' behavior/high cpu usage with vim/gvim/mvim on osx, ubuntu, redhat and windows when pasting large blocks of content and syntax highlighting is on.

提交回复
热议问题