summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-07-25 15:06:34 +0200
committerBram Moolenaar <Bram@vim.org>2012-07-25 15:06:34 +0200
commit641e28615398a960b810ec53a50398a63a3d2f68 (patch)
tree51198f8718c97245aad3e1a666e97c966df07341 /runtime
parent058bdcfd5d7f2fd0945e3cb9c84cab514cd95fb9 (diff)
updated for version 7.3.610v7.3.610
Problem: Cannot operate on the text that a search pattern matches. Solution: Add the "gn" and "gN" commands. (Christian Brabandt)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/index.txt2
-rw-r--r--runtime/doc/visual.txt12
2 files changed, 14 insertions, 0 deletions
diff --git a/runtime/doc/index.txt b/runtime/doc/index.txt
index c01f1d0314..33806bbdbb 100644
--- a/runtime/doc/index.txt
+++ b/runtime/doc/index.txt
@@ -751,6 +751,8 @@ tag char note action in Normal mode ~
lines down
|gk| gk 1 like "k", but when 'wrap' on go N screen
lines up
+|gn| gn 1,2 find the next match with the last used
+ search pattern and Visually select it
|gm| gm 1 go to character at middle of the screenline
|go| go 1 cursor to byte N in the buffer
|gp| ["x]gp 2 put the text [from register x] after the
diff --git a/runtime/doc/visual.txt b/runtime/doc/visual.txt
index 4457aeb018..74727ec13c 100644
--- a/runtime/doc/visual.txt
+++ b/runtime/doc/visual.txt
@@ -99,6 +99,18 @@ gv Start Visual mode with the same area as the previous
After using "p" or "P" in Visual mode the text that
was put will be selected.
+ *gn* *v_gn*
+gn Search forward for the last used search pattern, like
+ with `n`, and start Visual mode to select the match.
+ If the cursor is on the match, visually selects it.
+ If an operator is pending, operates on the match.
+ E.g., "dgn" deletes the text of the next match.
+ If Visual mode is active, extends the selection
+ until the end of the next match.
+
+ *gN* *v_gN*
+gN Like |gn| but searches backward, like with `N`.
+
*<LeftMouse>*
<LeftMouse> Set the current cursor position. If Visual mode is
active it is stopped. Only when 'mouse' option is