preview does not consider 'g' flag
Closed this issue · 2 comments
In Vim, the 'g' option of :s
command determines whether all matches on a line are replaced, or only the first match. But when vim-over shows the replacement preview, it behaves as if 'g' flag was specified. (However, when user invokes the command with <enter>
, the actual substitution is correct.)
Enter the following in :OverCommandLine
:
%s/a/b
vim-over shows all a
matches being replaced with b
. It should only show the first match (per line). However, if user then adds the 'g' option:
%s/a/b/g
then vim-over should show all matches being replaced.
Note that vim has a 'gdefault'
option which automatically adds 'g' flag to :s
command. If gdefault=1
then vim-over should behave as if 'g' flag was specified.
Thanks for a great plugin!
Thanks issues.
I fixed it. Please update and check plugin.
Thanks for a great plugin!
:))
Works perfectly, thanks so much.