Relatively new to vim search/replace commands and wondering how to replace part of matched string via vim commands.
E.g. If I have
printf(_UNICODE("Text and %d I want to preserve."), 20);
and I wish to get rid of the Unicode conversion and make it become
printf("Text and %d I want to preserve.", 20);
which means getting rid of the _UNICODE( and the ) but preserving the format string in between.
Can someone please help me come up with a vim command to do that and possibly explain?
Thanks a ton in advance! :)
/_UNICODE⏎2wdi(2bvt,p/_UNICODE⏎f"di(2bvt,pHandles the case if the format string starts with(%s%ssolution but I upvoted yours too.