How do you set the file encoding in Vim?
Answer
set encoding=utf-8 fileencoding=utf-8
Explanation
Set encoding for internal representation and fileencoding for the file on disk. UTF-8 is recommended for modern development.
set encoding=utf-8 fileencoding=utf-8
Set encoding for internal representation and fileencoding for the file on disk. UTF-8 is recommended for modern development.