讓 vim 支援 utf-8
適用:Debian Sarge
參考 Debian Wiki Vim,自己的設定:
在家目錄新增 .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
else
echoerr "Sorry, this version of (g)vim was not compiled with multi_byte"
endif
參考 Debian Wiki Vim,自己的設定:
在家目錄新增 .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
else
echoerr "Sorry, this version of (g)vim was not compiled with multi_byte"
endif




