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:
parent
5c63ce1fec
commit
5f37a4014f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user