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:
parent
723908bef5
commit
addf6f1db0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user