昔懐かしの im_custom パッチをvim8.2に対応させてみた。
http://www.j10n.org/files/vim-8.2-im_custom.patch

あと19年前に作ったeuc-jisx0213をencodingに設定できるようにする機能も。
http://www.j10n.org/files/vim-8.2-userenc.patch

つかいかた
if has('im_custom')
set imoptions=canna
endif
if has('userenc')
encdef euc-jp iconv-euc-jisx0213
encdef sjis iconv-shift_jisx0213
encalias iconv-euc-jisx0213 euc-jisx0213
encalias iconv-shift_jisx0213 shift-jisx0213
set encoding=euc-jisx0213
set termencoding=euc-jisx0213
set fileencodings=iso-2022-jp-3,iso-2022-jp,utf-8,cp932,shift-jisx0213,euc-jisx0213
endif