2

Check out :help global. It basically filters out the lines that don't match the pattern. So you can do :'<,'>global/<pattern to select lines based on>substitute/pool: MANAGED_POOL_CTS/<etc.>/. Or :'<,'>global/<pattern to select lines based on>/normal O<etc.>. Or, you could execute a macro. Something like: :global/<...


Only top voted, non community-wiki answers of a minimum length are eligible