feat(defaults): search selection by * and # in visual mode (#18538)

This commit is contained in:
yamatsum
2022-05-13 09:28:10 +09:00
committed by GitHub
parent b96037e42d
commit 233c41cb8c
5 changed files with 15 additions and 9 deletions

View File

@@ -848,6 +848,8 @@ void init_default_mappings(void)
MODE_NORMAL, true);
add_map((char_u *)"<C-U> <C-G>u<C-U>", MODE_INSERT, true);
add_map((char_u *)"<C-W> <C-G>u<C-W>", MODE_INSERT, true);
add_map((char_u *)"* y/\\\\V<C-R>\"<CR>", MODE_VISUAL, true);
add_map((char_u *)"# y?\\\\V<C-R>\"<CR>", MODE_VISUAL, true);
}
// Insert a string in position 'offset' in the typeahead buffer (for "@r"

View File

@@ -26,11 +26,9 @@ set sessionoptions+=options
set viewoptions+=options
set switchbuf=
" Unmap Nvim default mappings.
unmap Y
unmap <C-L>
iunmap <C-U>
iunmap <C-W>
" Clear Nvim default mappings.
mapclear
mapclear!
" Prevent Nvim log from writing to stderr.
let $NVIM_LOG_FILE = exists($NVIM_LOG_FILE) ? $NVIM_LOG_FILE : 'Xnvim.log'