10 lines
152 B
VimL
10 lines
152 B
VimL
|
function! IsWSL()
|
||
|
if has("unix")
|
||
|
let lines = readfile("/proc/version")
|
||
|
if lines[0] =~ "Microsoft"
|
||
|
return 1
|
||
|
endif
|
||
|
endif
|
||
|
return 0
|
||
|
endfunction
|