If vi shows garbled unicode/utf-8 characters
Put in ~/.vimrc :
:set encoding=utf-8
:set fileencodings=utf-8
To debug vi, check ~/.vminfo which is generated each time vi starts. It shows your encoding, etc.
If vi shows garbled unicode/utf-8 characters
Put in ~/.vimrc :
:set encoding=utf-8
:set fileencodings=utf-8
To debug vi, check ~/.vminfo which is generated each time vi starts. It shows your encoding, etc.