I am new to vim and in the process of discovering tons of interesting things that one can using this powerful editor.
One particular thing that I need to do very fr
I would simply do it like this: %r]^or[.
Here's an explanation:
f( -- put cursor on first parenthesis you want to change (if it's not already there).% -- jump to the matching parenthesis.r] -- replace the parenthesis with a bracket.CTRL-O -- jump back to to first parenthesis.r[ -- replace the parenthesis with a bracket.