Frequently when I am doing a find and replace in vi
I will do it like this:
:%s/find/replace/gc
This gives you the option to skip by pressing n
, or replace by pressing y
. But, sometimes I will accidentally skip over one in a large file by pressing n
when I meant to press y
.
How do I go backwards to the previous one and give me a second change?
Essentially, how to I find
(search
) the other direction temporarily? thanks.