Home

February 25th, 2008

12:10 pm
vim in binary mode

When running self-extracting shell scripts (usually with a tar/tgz file embedded or something similar), and you have to change something in the script, switch vi to no end of line, and binary mode:
set binary
set noeol