mirror of
https://github.com/tpope/vim-sensible.git
synced 2025-11-13 05:23:46 -05:00
Force encoding in gvim
In practice, this is mainly a problem on Windows.
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user