[CentOS] - OT - VIM - recording

Tue Jul 14 21:07:38 UTC 2009
Ed Donahue <liberaled at gmail.com>

Is it possible in vim to do the following:

Search for this block of data:

        # Catalog Service 2.0 for uat03
        <LocationMatch "^/Services/?">
        PathPrepend /inquiryservices
        Cluster 172.21.1.1:999
        </LocationMatch>

And change Cluster 172.21.1.1:9999 to Cluster 172.21.1.2:7000

It needs to have uat03 (or 02, 01) on the line and this line
'PathPrepend /inquiryservices' for the Cluster to be changed.