mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 10:00:06 +08:00
commit
a15581f11e
@ -89,10 +89,8 @@ endif
|
|||||||
|
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
function! s:version() abort
|
function! s:version() abort
|
||||||
redir => l:msg
|
let v = api_info().version
|
||||||
silent! execute ':version'
|
return v.major . '.' . v.minor . '.' . v.patch
|
||||||
redir END
|
|
||||||
return matchstr(l:msg,'NVIM v\zs[^\n]*')
|
|
||||||
endfunction
|
endfunction
|
||||||
else
|
else
|
||||||
function! s:version() abort
|
function! s:version() abort
|
||||||
|
Loading…
Reference in New Issue
Block a user