To replace String on file :%s/foo/bar/gTo replace String on file for specific line (e.g. 4-11) :4,11s/foo/barPlease enable JavaScript to view the comments powered by Disqus.comments powered by Disqus