bashとviで日本語入力

~/.inputrc

set meta-flag on
set convert-meta off
set input-meta on
set output-meta on


~/.vimrc

set encoding=japan
set fileencodings=iso-2002-jp,utf-8,euc-jp,cp93