mirror of
https://github.com/tpope/vim-sensible.git
synced 2025-11-13 13:33:48 -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
|
endif
|
||||||
set display+=lastline
|
set display+=lastline
|
||||||
|
|
||||||
|
if &encoding ==# 'latin1' && has('gui_running')
|
||||||
|
set encoding=utf-8
|
||||||
|
endif
|
||||||
|
|
||||||
if &listchars ==# 'eol:$'
|
if &listchars ==# 'eol:$'
|
||||||
set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+
|
set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+
|
||||||
if &termencoding ==# 'utf-8' || &encoding ==# 'utf-8'
|
if &termencoding ==# 'utf-8' || &encoding ==# 'utf-8'
|
||||||
|
|||||||
Reference in New Issue
Block a user