@J12t quite interesting read indeed... I would've probably tried sed first for the 54GB edits, or used head/tail in line mode... Assuming file is proper text with newlines of course (IIRC how MySQL dumps are, I don't know about PostgreSQL). In any case with vim use binary+noeol for edits of huge and/or binary files. 🙂