3 ms·How do you do refactoring in vi? Do you really search and replace?by jsvaughan 16y agoHow do you do refactoring in vi? Do you really search and replace?doki_pen 16y agoYes. It depends on the case, but sed, awk and grep are also useful.