Why is pasting a long one-liner very slow in Vim's insert mode?

后端 未结 9 1147
别那么骄傲
别那么骄傲 2020-12-23 14:35

My Macbook was stuck yesterday, when I tried to paste 1200 lines of 80 characters to Vim. It was much faster to download the file, and not to paste the text.

I have

9条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-23 15:11

    if you :syntax off you can sometimes improve an in place paste of a long single line file. An example would be a machine generated xml file.

    you can probably disable vim's redraw whilst pasting as well, look at :he redraw , but it's always worth using command line stuff as If you are repeating the procedure or similar you can always automate it with a script / vim macro

提交回复
热议问题