Alex Rivera | Logout

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

Asked 2009-02-01T18:40:14.047
30

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 thought that this problem might be the reason, why internet operators allow slower uploading than downloading.

Edit
Report

1 Answer

2

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

answered 2009-02-01T22:44:00.890

Your Answer