From b590fad7efe5e45dc307254a084462f037e2bf28 Mon Sep 17 00:00:00 2001 From: "J. B. Rainsberger" Date: Tue, 18 Dec 2018 07:27:40 -0500 Subject: [PATCH 1/3] Made it easier to notice instructions for extending the selection. --- README.asciidoc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.asciidoc b/README.asciidoc index 45cb3cd3..8da2218a 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -331,6 +331,8 @@ selection's cursor. Some additional keys are recognised in insert mode: Movement ~~~~~~~~ +See <> below for instructions on extending (appending to) the current selection, in order to select more text in multiple steps. + * `h`: select the character on the left of selection end * `j`: select the character below the selection end * `k`: select the character above the selection end @@ -391,8 +393,13 @@ sequence of non whitespace characters. Appending ~~~~~~~~~ -for most selection commands, using shift permits extending current selection -instead of replacing it. for example, `wWW` selects 3 consecutive words +For most <> commands, using `Shift` extends the current selection +instead of replacing it. + +Examples: + + * `wWW` selects 3 consecutive words: first `w` selects a word, then `WW` extends the selection two words further. + * `f/F/` selects up to and including the second `/` character forward. Using Counts ~~~~~~~~~~~~ From dff86ce195898e52761f573bd3649e4984e7a3d3 Mon Sep 17 00:00:00 2001 From: "J. B. Rainsberger" Date: Tue, 18 Dec 2018 07:28:14 -0500 Subject: [PATCH 2/3] Minor improvements: grammar and spacing. --- README.asciidoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.asciidoc b/README.asciidoc index 8da2218a..74834e2e 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -338,13 +338,13 @@ See <> below for instructions on extending (appending to) the current * `k`: select the character above the selection end * `l`: select the character on the right of selection end - * `w`: select the word and following whitespaces on the right of selection end + * `w`: select the word and following whitespaces on the right of selection end * `b`: select preceding whitespaces and the word on the left of selection end * `e`: select preceding whitespaces and the word on the right of selection end * ``: same as [wbe] but select WORD instead of word - * `f`: select to the next occurence of given character - * `t`: select until the next occurence of given character + * `f`: select to the next occurrence of the given character + * `t`: select until (excluding) the next occurrence of the given character * ``: same as [ft] but in the other direction * `m`: select to matching character From 39c8d05cfa509bdc07df7f8a94b2e34d3e8d79da Mon Sep 17 00:00:00 2001 From: "J. B. Rainsberger" Date: Tue, 18 Dec 2018 07:30:29 -0500 Subject: [PATCH 3/3] Clarified the difference between movement 'f' and 't'. --- README.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.asciidoc b/README.asciidoc index 74834e2e..56f24542 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -343,7 +343,7 @@ See <> below for instructions on extending (appending to) the current * `e`: select preceding whitespaces and the word on the right of selection end * ``: same as [wbe] but select WORD instead of word - * `f`: select to the next occurrence of the given character + * `f`: select to (including) the next occurrence of the given character * `t`: select until (excluding) the next occurrence of the given character * ``: same as [ft] but in the other direction