" support UTF-8 automatically when not on console
if has('gui_running') && has('multi_byte')
set encoding=utf-8
set fileencoding=utf-8
set fileencodings=utf-8
endif
Note that the gui_running requirement ensures that this will be used by gvim and by vim run from a terminal emulator (such as urxvt or mlterm), not by vim running from a virtual terminal or console.
No comments:
Post a Comment