vim backreference on search and replace
Use \(\) to denote an atom.
Use \1 to specify the first atom.
<this is your search and replacement terms>
:%s'\(<stuff_to_find>\)'\1<new_stuff>'gc
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
:%s'\(<stuff_to_find>\)'\1<new_stuff>'gc
:%s'replacethis'withthis'gc