1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 07:40:05 +08:00

Merge pull request #1219 from SpaceVim/tags

Update version api
This commit is contained in:
Wang Shidong 2018-01-01 22:26:03 +08:00 committed by GitHub
commit a15581f11e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,10 +89,8 @@ endif
if has('nvim')
function! s:version() abort
redir => l:msg
silent! execute ':version'
redir END
return matchstr(l:msg,'NVIM v\zs[^\n]*')
let v = api_info().version
return v.major . '.' . v.minor . '.' . v.patch
endfunction
else
function! s:version() abort