Use the Last Search Term for a Substitution in Vim
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 ...