I try to use IPython's %cpaste to paste the clipboard content (Python code) to my Terminal which is launched via Neovim's terminal mode.

However, if I paste long lines of code, it freezes, and does not respond to my input at all. I'm forced to exit of it using keyboard interrupt, but then I could not run any code.

The result is like the following, and the code does not scroll toward the bottom (i.e. the part of code is cut off, as only the code that a page contains seems to be pasted).

Why is the %cpaste command to paste my code not working and how can I fix it?

enter image description here


1 Answer 1


Have you tried %paste?

I tried it in VIM terminal and %paste works for me in VIM-8 terminal

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.