phato.blog

Humble semi-technical blog of Pat Wangrungarun

Lookbehind / Lookahead in Vim

15 August 2013 in Vim

Vim is just powerful, sometimes you might want to replace your code from something to everything or someone. This is, matching the whole (or partially) of a string and replace (partially) of the string with another word.