What does the title say. I can think of some hackish methods, but is there a correct way to do this?
To check Windows, most scripts I’ve seen use the following:
< p>
let s:win = has("win16") || has("win32") || has("win64")
If these are not defined, then It is a non-Windows system, you can try Martín Fixman’s uname suggestion.
What does the title say. I can think of some hackish methods, but is there a correct way? To do this?
To check Windows, most scripts I have seen use the following:
let s: win = has("win16") || has("win32") || has("win64")
If these are not defined, then it is a non-Windows system, you can try Martín Fixman Uname suggestion.