Monthly Archives: December 2023

Useful Sed strings to use in Vim

To delete lines 4-12 in Vim: :4,12 d To replace the word foo with the word bar starting at the line where the cursor is through the end of the file: :.,$s/foo/bar/ To remove the spaces in the middle of … Continue reading

Posted in Linux | Comments Off on Useful Sed strings to use in Vim