Search and replace - Vim Tips Wiki:


\0 inserts the text matched by the entire pattern

\1 inserts the text of the first backreference. \2 inserts the second backreference, and so on.


For whatever reason, I continually feel I've misremembered this when I'm VImming.  Hopefully blogging will make it real.

Labels: ,