http://max-linux-space.blogspot.com/2010/08/vimrc-vim-utf8big5.html
設定 vimrc 讓vim可以編輯 UTF8/BIG5 等編碼文件
$ vim /etc/vimrc
加入以下
if has("multi_byte")
set encoding=utf-8
setglobal fileencoding=big5
set fileencoding=big5
set bomb
set termencoding=big5
set fileencodings=ucs-bom,big5,utf-8,latin1
set guifont=-misc-fixed-medium-r-normal-*-18-120-100-100-c-90-iso10646-1
set guifontwide=-misc-fixed-medium-r-normal-*-18-120-100-100-c-180-iso10646-1
else
echoerr "Sorry, this version of (g)vim was not compiled with multi_byte"
endif
沒有留言:
張貼留言