Substitute a regular expression by text in between the regular expression
Suppose I want to change \hl{abc} \{} { } \hl{12} to abc \{} } { 12 i.e. I want to remove \hl{ and } from around what’s inside them. How can I do this in vim? I was considering :s/\\hl{.*}//g but that also takes away the text in between. >Solution : You can use \(…\)… Read More Substitute a regular expression by text in between the regular expression