Force encoding in gvim

In practice, this is mainly a problem on Windows.
This commit is contained in:
Tim Pope
2013-02-15 20:37:15 -05:00
parent 5b0e1b4b9a
commit d4d1491aa1

View File

@@ -48,6 +48,10 @@ if !&sidescrolloff
endif
set display+=lastline
if &encoding ==# 'latin1' && has('gui_running')
set encoding=utf-8
endif
if &listchars ==# 'eol:$'
set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+
if &termencoding ==# 'utf-8' || &encoding ==# 'utf-8'