I'm trying to find and replace caret open_parentheses some_content close_parentheses
(i.e.^(.*)
) with caret open_curly_bracket the_same_content close_curly_bracket
(i.e. ^{.*}
but I have issues.
1) I do not understand how to preserve the matched wildcard content .*
2) I do not see how to formulate the escape sequence to specify curly brackets and parentheses.
I have been going through this page for quite a bit and have attempted the following
%s/^(*)/^{*} /gc
%s/^(.*)/^{.*} /gc
%s/^/(.*/)/^{.*} /gc