aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authoryamatsum <42740055+yamatsum@users.noreply.github.com>2022-05-13 09:28:10 +0900
committerGitHub <noreply@github.com>2022-05-13 08:28:10 +0800
commit233c41cb8cfe1aa5a8520fe6104adacc53c0ece2 (patch)
tree7f516336f4032e85ee2e9a0fdcfda64693807414 /runtime
parentb96037e42de42b504dd6f02d03de608d1b2a32c5 (diff)
downloadrneovim-233c41cb8cfe1aa5a8520fe6104adacc53c0ece2.tar.gz
rneovim-233c41cb8cfe1aa5a8520fe6104adacc53c0ece2.tar.bz2
rneovim-233c41cb8cfe1aa5a8520fe6104adacc53c0ece2.zip
feat(defaults): search selection by * and # in visual mode (#18538)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/pattern.txt6
-rw-r--r--runtime/doc/vim_diff.txt2
2 files changed, 8 insertions, 0 deletions
diff --git a/runtime/doc/pattern.txt b/runtime/doc/pattern.txt
index 35f5b311ff..371a210847 100644
--- a/runtime/doc/pattern.txt
+++ b/runtime/doc/pattern.txt
@@ -71,12 +71,18 @@ N Repeat the latest "/" or "?" [count] times in
Only whole keywords are searched for, like with the
command "/\<keyword\>". |exclusive|
'ignorecase' is used, 'smartcase' is not.
+ *v_star-default*
+ In Visual mode, search forward for the current selection.
+ |default-mappings|
*#*
# Same as "*", but search backward. The pound sign
(character 163) also works. If the "#" key works as
backspace, try using "stty erase <BS>" before starting
Vim (<BS> is CTRL-H or a real backspace).
+ *v_#-default*
+ In Visual mode, search backward for the current selection.
+ |default-mappings|
*gstar*
g* Like "*", but don't put "\<" and "\>" around the word.
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index 1a3d6022ca..a3de8c6574 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -87,6 +87,8 @@ of these in your config by simply removing the mapping, e.g. ":unmap Y".
nnoremap <C-L> <Cmd>nohlsearch<Bar>diffupdate<Bar>normal! <C-L><CR>
inoremap <C-U> <C-G>u<C-U>
inoremap <C-W> <C-G>u<C-W>
+ xnoremap * y/\V<C-R>"<CR>
+ xnoremap # y?\V<C-R>"<CR>
<
Default Autocommands ~
*default-autocmds*