Monday, 21 December 2009

 

Replace a line with the contents of a file


Replace a marker line (contaning just the word mark) with the contents of an
external file doc.txt

" replace string with contents of a file, -d deletes the "mark"
:g/^MARK$/r doc.txt | -d



Comments:

Post a Comment

Subscribe to Post Comments [Atom]





<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]