0

There is a file that I have to use in iso-2022-jp encoding. I tried


:e ++enc=iso-2022-jp
:w

in the hope of converting the fileencodings to "iso-2022-jp" permanantly. But the next time I opened the file, vim responds to me


:se fenc?
fileencodings=utf-8
.

I have not written any curious things in my vimrc. Why is this happening?

Taro
  • 153
  • 3
  • 2
  • fenc stands for "fileencoding", not "fileencodings" (fencs). 2) How do you expect Vim to remember ++enc=xxx "next time"?
  • – Matt Jan 07 '22 at 15:06