Let's say I have the following text
bar1 = foo.get('abc1')
bar2 = foo.get('abc2')
bar3 = foo.get('abc3')
and I would like to search and replace all the occurrences of foo.get(...) with foo[...] in order to obtain:
bar1 = foo['abc1']
bar2 = foo['abc2']
bar3 = foo['abc3']
How could I do that in vim in one search/replace command?
