Convert multiple files from latin1 to utf8 with vim

Posted on

If you have several files that need to be converted to utf8, you can do it with vim. First start vim with:

Which will find all .htm and .html files from the current directory. Then in vim, use : to go into command mode. Run these two commands: :set nomore :bufdo set fileencoding=utf8 | […]