This question already has an answer here:
- Detect OS in Vimscript 5 answers
I am using vim in a terminal on my mac.
I understand that the command:
1 (it does on macvim), because it's running on a mac. But it returns
0. Can anyone tell me why this is, and if there's a more reliable way of detecting if vim is running on osx?
:echo has('macunix') also returns
:echo has('osx') also returns