martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.19k stars 259 forks source link

interactive search and replace (question) #1047

Closed dkwo closed 1 year ago

dkwo commented 1 year ago

Is there a way to do it? In vim, I'd use :%s/old/new/gc. Thanks.

ninewise commented 1 year ago

You could use :x/old/ to select those, use ctrl-d and ctrl-p to cycle and deselect. After, you can use :c/new/ or just cnew<esc>.

dkwo commented 1 year ago

Excellent, thank you!