I want to replace all of the occurrences ofarmv7_format_strings<any_string> = {<str1>, <str2>};by armv7_format_strings<any_string>[0] = <str1> ;armv7_format_strings<any_string>[1] = <str2> ;
How to do the following replace in vim?
regular expression;substitute
This one worked:%s/\(armv7_format_strings.*\) = {\(.*\), \(.*\)};/\1[0] = \2;\r\1[1] = \3;\r/gc