%s/oldstring/newstring/g
This must be done from the VI command line (hit : to get there) and will replace all occurrences of "oldstring" in the current document with "newstring". Supremely helpful when editing massive config files.
« Ubuntu 7.04 Feisty Fawn Released | Main | VI Command of the Week - #4 »
%s/oldstring/newstring/g
This must be done from the VI command line (hit : to get there) and will replace all occurrences of "oldstring" in the current document with "newstring". Supremely helpful when editing massive config files.
This page contains a single entry from the blog posted on April 25, 2007 4:51 PM.
The previous post in this blog was Ubuntu 7.04 Feisty Fawn Released.
The next post in this blog is VI Command of the Week - #4.
Many more can be found on the main index page or by looking through the archives.