From 856c1110c1cf0d6e44e387b70732ca4b4c8ef0f2 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 17 Jun 2020 21:47:23 +0200 Subject: patch 8.2.0997: cannot execute a register containing line continuation Problem: Cannot execute a register containing line continuation. Solution: Concatenate lines where needed. (Yegappan Lakshmanan, closes #6272) --- runtime/doc/repeat.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt index 29cdd73bb3..7b0efddbb8 100644 --- a/runtime/doc/repeat.txt +++ b/runtime/doc/repeat.txt @@ -163,6 +163,11 @@ q Stops recording. (Implementation note: The 'q' that result of evaluating the expression is executed as an Ex command. Mappings are not recognized in these commands. + When the |line-continuation| character (\) is present + at the beginning of a line in a linewise register, + then it is combined with the previous line. This is + useful for yanking and executing parts of a Vim + script. Future: Will execute the register for each line in the address range. -- cgit v1.2.3