I edit all kinds of files with Vim (as I\'m sure most Vim users do). One bug bear I have is what Vim does when I come across a file with an odd encoding. Most editors (the
if has("multi_byte")
if &termencoding == ""
let &termencoding = &encoding
endif
set encoding=utf-8
setglobal fileencoding=utf-8
"setglobal bomb
set fileencodings=ucs-bom,utf-8,latin1
endif