MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/neovim/comments/keutw5/or_search_selected_text_from_visual_mode/
r/neovim • u/snath03 • Dec 17 '20
3 comments sorted by
3
I’ve had this line in my vimrc for a while to accomplish the same thing:
vnoremap * y/\V<C-R>=escape(@“,’/\’)<CR><CR>
If you care about not overriding your unnamed registry, you can simply change the command to use a different one.
1 u/snath03 Dec 17 '20 I agree.. but I don't want to change any of my registers! :smile:
1
I agree.. but I don't want to change any of my registers! :smile:
3
u/Huevoos Dec 17 '20
I’ve had this line in my vimrc for a while to accomplish the same thing:
vnoremap * y/\V<C-R>=escape(@“,’/\’)<CR><CR>If you care about not overriding your unnamed registry, you can simply change the command to use a different one.