Substituting in a visual selection: ordinary atom \%V
Issue type
- Bug report
Environment
Emacs version: GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2020-10-16
Operating System: Ubuntu 20.04
Evil version: Evil version evil-git-76301564c
Evil installation type: MELPA
Graphical/Terminal: Graphical
Tested in a make emacs session (see CONTRIBUTING.md): Yes
Reproduction steps
- Start Emacs
Example from https://vim.fandom.com/wiki/Search_and_replace_in_a_visual_selection#Substituting_in_a_visual_selection
- write
music amuse fuse refusein the buffer - select
amuse fuse(^wvee) - enter the following command:
:s/\%Vus/az/gor:'<,'>s/\%Vuse/az/g -
<RET>
Expected behavior
The result should behave as vim: music amaze faze refuse.
Actual behavior
Do nothing.
Further notes
See http://vimdoc.sourceforge.net/htmldoc/pattern.html#/%V
Searching only over a visual range doesn't work either: /\%Vpattern.
https://vim.fandom.com/wiki/Search_only_over_a_visual_range