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