mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 11:26:37 +00:00
feat(defaults): search selection by * and # in visual mode (#18538)
This commit is contained in:
@@ -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.
|
||||
|
@@ -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*
|
||||
|
Reference in New Issue
Block a user