vim find and replace backreference

vim find and replace backreference

Created Wednesday 20 February 2013

printf("keep this message"); to log(debug, "keep this message");

\(.*\) -> \1

:s/printf(\(.*\))/log(debug, \1)/gc

reference: http://vim.wikia.com/wiki/Search_and_replace

Comments