dotfiles/iswsl.vim

10 lines
167 B
VimL

function! IsWSL()
if has("unix") && !has("mac")
let lines = readfile("/proc/version")
if lines[0] =~ "Microsoft"
return 1
endif
endif
return 0
endfunction