Archive for tag: substitute

Use the Last Search Term for a Substitution in Vim

5 April, 2011 (17:38) | Vim, [English Posts] | By: Wolfgang

It is quite usual to first search for something in vim just to use it in a substitution afterwards. To do so just leave the substitution pattern of the substitution command empty. This way it is possible to build complex regular expressions interactively with the help of the search function and later use it ...