parent
854219f42e
commit
2afff4c411
@ -389,7 +389,7 @@ function! vimwiki#base#system_open_link(url) "{{{
|
|||||||
if vimwiki#u#is_windows()
|
if vimwiki#u#is_windows()
|
||||||
call s:win32_handler(a:url)
|
call s:win32_handler(a:url)
|
||||||
return
|
return
|
||||||
elseif has("macunix")
|
elseif vimwiki#u#is_macos()
|
||||||
call s:macunix_handler(a:url)
|
call s:macunix_handler(a:url)
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
|
@ -23,6 +23,15 @@ function! vimwiki#u#is_windows() "{{{
|
|||||||
return has("win32") || has("win64") || has("win95") || has("win16")
|
return has("win32") || has("win64") || has("win95") || has("win16")
|
||||||
endfunction "}}}
|
endfunction "}}}
|
||||||
|
|
||||||
|
function! vimwiki#u#is_macos()
|
||||||
|
if has("mac") || has("macunix") || has("gui_mac")
|
||||||
|
return 1
|
||||||
|
endif
|
||||||
|
" that still doesn't mean we are not on Mac OS
|
||||||
|
let os = substitute(system('uname'), '\n', '', '')
|
||||||
|
return os == 'Darwin' || os == 'Mac'
|
||||||
|
endfunction
|
||||||
|
|
||||||
function! vimwiki#u#time(starttime) "{{{
|
function! vimwiki#u#time(starttime) "{{{
|
||||||
" measure the elapsed time and cut away miliseconds and smaller
|
" measure the elapsed time and cut away miliseconds and smaller
|
||||||
return matchstr(reltimestr(reltime(a:starttime)),'\d\+\(\.\d\d\)\=')
|
return matchstr(reltimestr(reltime(a:starttime)),'\d\+\(\.\d\d\)\=')
|
||||||
|
Loading…
Reference in New Issue
Block a user