From e758f11cc8f98a370b420acfb620cd03f750e82d Mon Sep 17 00:00:00 2001 From: AndroLay Date: Mon, 10 Aug 2026 13:42:02 +0800 Subject: [PATCH] docs(tutor): explain multi-selection yank and paste --- runtime/tutor | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/runtime/tutor b/runtime/tutor index e6e4fc499917..19cbb1df1181 100644 --- a/runtime/tutor +++ b/runtime/tutor @@ -640,6 +640,30 @@ Option as Alt (e.g. macos-option-as-alt = left). This is also true for future Alt- commands. +================================================================= += 5.6 YANKING MULTIPLE SELECTIONS = +================================================================= + + Type y to yank each selection as a separate value. + Type p to paste those values after the destination selections, + pairing them in selection order. + + 1. Move to the first line marked '-->' below and type x. + 2. Type s, enter '[a-z]+', and press Enter to select each word. + 3. Type y to yank "red", "green", and "blue" separately. + 4. Type , to keep only the primary selection, then j to move to + the second line marked '-->' below. + 5. Type x, then s, enter '[123]', and press Enter. + 6. Type p to paste one yanked word after each number. + + --> red green blue + --> 1 2 3 + 1red 2green 3blue + + Note: To paste multiple yanked values separately, first create + multiple destination selections. If there are more + destinations than values, the last value is repeated. + ================================================================= = CHAPTER 5 RECAP = ================================================================= @@ -654,6 +678,9 @@ * Press Alt-s to split the selection into lines. + * Type y to yank each selection separately and p to paste the + values across destination selections in order. +