gsandie online notebook

bom disposal

I had a bunch of files I needed to remove the BOM from to keep some ruby stuff happy:

http://en.wikipedia.org/wiki/Byte-order_mark

Turns out this is pretty simple to do with vim:

$ file foo.txt
foo.txt: UTF-8 Unicode (with BOM) English text, with very long lines, with CRLF, CR line terminators
$ vim foo.txt
:set nobomb
:wq
$ file foo.txt
foo.txt: UTF-8 Unicode English text, with very long lines, with CRLF, CR line terminators
$