Magikarp
  • Member for 2 years, 2 months
  • Last seen more than 2 years ago
How to replace a pair of brackets
-1 votes

As @AndyB said, you can substitute with this: :s/(\(.*\))/[\1]/ I would alter it slightly to this. I added a ? after the .* to make it non-greedy, which means it will try to find the shortest match, ...

View answer