Don't set 'encoding'

Vim 8.2.2912 changes the default on Windows, eliminating the primary
issue this was intended to fix.  Changing 'encoding' can prevent
previously defined maps from working, so let's rip this out sooner
rather than later.

References: https://github.com/tpope/vim-sensible/issues/69
This commit is contained in:
Tim Pope
2022-12-26 01:05:51 -05:00
parent c28d1ad848
commit 489e9bf885

View File

@@ -50,10 +50,6 @@ 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:+
endif endif