Baishun's Space

Vim set encoding gb18030

By Baishun on May 23, 2024
nvim encoding

Sometimes when we open some Chinese text file, vim can not show it properly, most of the problems are the problem of encoding.

To support gb18030, we need to install iconv in our system. If you use brew, you can do like this


brew install libiconv

Then you can open your file, and run command like this:

:e ++enc=gb18030
For business cooperation or you have any questions, please send email to : lecy.cc.app@gmail.com
© Copyright 2024 by Baishun Space. Built with ♥ by Lecy. Origin theme of this blog is from ixartz. Social Icons are copied from astro-social-share