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