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

Kien Nguyen

A father, husband, and passinate programmer

Ho Chi Minh, Vietnam http://kiennt.com