VIM with regex

Regular expression in VIM, you can specify a regex group by \( and \). To get value of group, use \1 where 1 is number of group in regex For example, i want to replace all name with :name :%s/`\(\w+\)`/:\1/g »

Author image Kien Nguyen