~/.vimrc 中输入以下内容:

    1. set encoding=utf-8
    2. set fileencoding=utf-8