Vim: interactively check what's happening before substitute?

vim

Solution

Yes, you can do this by appending another command as:

:%s/Array/Set/gc

Problem

`vim` has very powerful command tools. I can substitute 'Set's for all 'Array's: ``` :%s/Array/Set/g ``` But can I do this interactively as Unix commands(e.g. `rm`)? I hope `vim` to ask me whether I really want to replace a word, rather than substitute them all at once.

Original source