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
You need to create an account or log in to post comments to this site.
» filesharing between linux an... in linux administration filesharing
» Clear a log file in linux administration
» using tar to archive files in linux tar administration
» recursively find (and delete... in find linux administration
» vi - change and save setting... in vi linux administration
» ubuntu search apt-get packages in ubuntu linux administration
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails