Skip to content

Instantly share code, notes, and snippets.

@SuibianP
Created December 13, 2020 18:14
Show Gist options
  • Save SuibianP/3e45c7663e5358a1baf966f623cf335b to your computer and use it in GitHub Desktop.
Save SuibianP/3e45c7663e5358a1baf966f623cf335b to your computer and use it in GitHub Desktop.
Batch text file conversion from Shift-JIS to UTF-8 using Vim
vim "+bufdo edit ++enc=shift-jis | set fileencoding=utf8 | w" "+qa" $(find . -path ./.git -prune -o -type f -print)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment