Skip to content

Instantly share code, notes, and snippets.

@gregelin
Created June 25, 2019 11:05
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregelin/b5474a0892178866811460ba2746dba9 to your computer and use it in GitHub Desktop.
Save gregelin/b5474a0892178866811460ba2746dba9 to your computer and use it in GitHub Desktop.
Remove BOM characters using vim (e.g., \ufeff)

You can easily remove them using vim, here are the steps:

  1. In your terminal, open the file using vim:

vim file_name

  1. Remove all BOM characters:

:set nobomb

  1. Save the file:

:wq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment