1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-13 14:59:10 +08:00

Check vim version

This commit is contained in:
wsdjeg 2017-01-24 00:56:44 +08:00
parent 723908bef5
commit addf6f1db0

View File

@ -1,7 +1,11 @@
function! SpaceVim#options#list() abort
let list = []
for var in getcompletion('g:spacevim_','var')
call add(list, var . " = " . string(get(g:, var[2:] , '')))
endfor
if has('patch-7.4.2010')
for var in getcompletion('g:spacevim_','var')
call add(list, var . ' = ' . string(get(g:, var[2:] , '')))
endfor
else
call add(list, 'your vim is too old, getcompletion() need patch7-4-2010')
endif
return list
endfunction