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"