I want to remove \xef\xbb\xbf
marks (BOM) from my file. It's a text file to be fed to python, and the BOM marks are causing problems there. I tried :set nobomb
but those are still there. How can I solve this problem and what might have caused this problem?
UPDATE: My file is obtained by combining (concatenating) many other files (using obabel software) each of which has BOM. So, probably set nobomb removes BOM mark only at the beginning of the new file. In such cases, how can I remove all BOMs?
:set nobomb
? From the Vim help:When you don't change the options, the BOM will be restored when writing the file.
Or another possibility: was your vim config already set tonobomb
by default? If so, then:set nobomb
wouldn't delete the BOM character because the options wouldn't have changed. – Badmouth