vi in linux display problem of Chinese garbled

Because it is gb encoding, and my vim default is utf-8 (gedit default is utf-8), it will be open to distortion by default in windows. Modify configuration files a bit to make vi support gb coding just fine.

$ VI ~ / .vimrc

the let & termencoding = & encoding
SET = UTF-fileencodings. 8, GBK

$: WQ
Published 36 original articles · won praise 9 · views 110 000 +

Guess you like

Origin blog.csdn.net/gudufeiyang/article/details/37656131