iTerm上でのvim/emacsでの文字化けをしなくする
vimは.vimrcに下記を書く
set termencoding=utf-8 set encoding=utf-8 set fileencodings=iso-2022-jp,utf-8,cp932,euc-jp
(set-language-environment 'Japanese) (set-terminal-coding-system 'utf-8) (setq file-name-coding-system 'utf-8) (set-clipboard-coding-system 'utf-8) (setq default-buffer-file-coding-system 'utf-8) (setq coding-system-for-read 'mule-utf-8-unix) (prefer-coding-system 'utf-8) (set-default-coding-systems 'utf-8) (set-keyboard-coding-system 'utf-8) (set-buffer-file-coding-system 'utf-8-unix)