mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-14 15:19:12 +08:00
Check vim version
This commit is contained in:
parent
723908bef5
commit
addf6f1db0
@ -1,7 +1,11 @@
|
|||||||
function! SpaceVim#options#list() abort
|
function! SpaceVim#options#list() abort
|
||||||
let list = []
|
let list = []
|
||||||
for var in getcompletion('g:spacevim_','var')
|
if has('patch-7.4.2010')
|
||||||
call add(list, var . " = " . string(get(g:, var[2:] , '')))
|
for var in getcompletion('g:spacevim_','var')
|
||||||
endfor
|
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
|
return list
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user