1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 15:19:12 +08:00

fix(core): Handle E319 when Vim was built without language support

E319 means that Vim was built without the feature that supports a given
command (http://vimdoc.sourceforge.net/htmldoc/message.html#E319); if
Vim is built without language support, SpaceVim cannot successfully
load.  this change enables SpaceVim to recover from this error message
and continue loading.

see https://github.com/qvacua/vimr/issues/879 for an example of the
problem that this solves.
This commit is contained in:
Steve Huff 2021-11-15 12:07:20 -05:00 committed by GitHub
parent 5c63ce1fec
commit 5f37a4014f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1554,6 +1554,8 @@ function! SpaceVim#begin() abort
endif
catch /^Vim\%((\a\+)\)\=:E197/
call SpaceVim#logger#error('Can not set language to en_US.utf8')
catch /^Vim\%((\a\+)\)\=:E319/
call SpaceVim#logger#error('Can not set language to en_US.utf8, language not implemented in this Vim build')
endtry
" try to set encoding to utf-8