From 9f81acc076779f891160423657cc35e6ac37c3e6 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Thu, 29 Aug 2019 23:45:02 +0200 Subject: paste: break lines at CR, CRLF #10877 Some terminals helpfully translate \n to \r. fix #10872 ref #10223 --- runtime/doc/provider.txt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'runtime') diff --git a/runtime/doc/provider.txt b/runtime/doc/provider.txt index 833be8a103..0083bb63a4 100644 --- a/runtime/doc/provider.txt +++ b/runtime/doc/provider.txt @@ -239,13 +239,14 @@ GUIs can paste by calling |nvim_paste()|. PASTE BEHAVIOR ~ -Paste always inserts text after the cursor. In cmdline-mode only the first -line is pasted, to avoid accidentally executing many commands. Use the -|cmdline-window| if you really want to paste multiple lines to the cmdline. - -When pasting a huge amount of text, screen updates are throttled and the +Paste inserts text after the cursor. Lines break at , , and . +When pasting a huge amount of text, screen-updates are throttled and the message area shows a "..." pulse. +In cmdline-mode only the first line is pasted, to avoid accidentally executing +many commands. Use the |cmdline-window| if you really want to paste multiple +lines to the cmdline. + You can implement a custom paste handler by redefining |vim.paste()|. Example: > -- cgit