plugin: make use of rand() function from vim 8.1.2342
This commit is contained in:
parent
19c655b420
commit
81fdc3b988
|
@ -251,7 +251,10 @@ function! s:airline_extensions()
|
|||
endfunction
|
||||
|
||||
function! s:rand(max) abort
|
||||
if has("reltime")
|
||||
if exists("*rand")
|
||||
" Needs Vim 8.1.2342
|
||||
let number=rand()
|
||||
elseif has("reltime")
|
||||
let timerstr=reltimestr(reltime())
|
||||
let number=split(timerstr, '\.')[1]+0
|
||||
elseif has("win32") && &shell =~ 'cmd'
|
||||
|
|
Loading…
Reference in New Issue