Closed h3xx closed 2 years ago
Re: 2004: I think - I may be reading it wrong. The commit that mentions it in the docs was added on 2021-05-16, but maybe it was a hidden feature.
I did some testing in Vim 8.1 (2018), this doesn't give an error, but it also doesn't preserve @/
.
Just kidding, the Vim builtin feature doesn't even preserve @/
yet. Every v:version = 900
build I've tried it in, :v/foo/d _
sets @/
to foo
. The doc is just wrong. Maybe next year.
try using :keeppatterns
command modifier
Decided this wasn't worth the effort; the software is fine as it is.
Use
:v
's_
flag to not clobber @/ instead of backing it up and restoring it.This feature has been supported in Vim since 2004:
doc/repeat.txt: (:v :vglobal)