← Back Home

Replace String On Specific Line

  1. til

To replace String on file :%s/foo/bar/g

To replace String on file for specific line (e.g. 4-11) :4,11s/foo/bar

comments powered by Disqus