there is an easy way to remove BOM using vim.

just type below commend in vim to remove BOM.

1
2
:set nobomb
:w

check BOM using vim

1
:set bomb?

Reference