% vim -x [filename] set encoding=utf-8 set fileencodings=utf-8,sjis,cp932,euc-jp vim -c ":e ++enc=sjis" [filename] vim -c ":e ++enc=utf-8" [filename] ~/.vimrc " any comment syntax on " " .vimrc " " Japanese Words set encoding=japan set fileencodings=utf-8,shift_jis,latin1,default,euc-jp " display mode, if it is insert mode set showmode " display line numbers on left side set number " auto indent s