Skip to content

Commit 07e7183

Browse files
authored
use correct equivalent of xdg-open on MS Windows
1 parent 7337d37 commit 07e7183

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎plugin/devdocs.vim

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ set cpo&vim
1515

1616
" What command to use
1717
function! s:Cmd() abort
18+
" Windows (and WSL)
19+
if executable('cmd.exe')
20+
return "cmd.exe /c start /b"
1821
" Linux/BSD
19-
if executable("xdg-open")
22+
elseif executable("xdg-open")
2023
return "xdg-open"
21-
endif
2224
" MacOS
23-
if executable("open")
25+
elseif executable("open")
2426
return "open"
2527
endif
26-
" Windows
27-
return "explorer"
2828
endfunction
2929

3030
" Build the URL stub

0 commit comments

Comments
 (0)