DaveIdito
DaveIdito

Reputation: 1606

How do I cancel a vim paste in insert mode?

I didn't see it coming and pasted a huge text corpus from the system clipboard into vim, and now the paste is progressing very slowly. As I said, there are solutions, but I didn't expect this.

Now that I am in insert mode, and vim is making progress in continuous paste attempts, how can I cancel this paste without killing vim?

There is an answer for normal mode here, but I was in insert mode when I pasted from system clipboard (Cmd+v), and now I can neither switch tabs, change windows, or cancel the paste.

I'm using zsh, and default Vim (on MacOS- Big Sur)

Upvotes: 0

Views: 1334

Answers (1)

romainl
romainl

Reputation: 196886

The usual suspects, <Esc>, <C-]>, and <C-c>, won't do anything until the input stream is finished so there is, AFAIK, nothing you can do.

Upvotes: 3

Related Questions