This question already has an answer here:
- Detect OS in Vimscript 5 answers
I use the same versioned .vimrc on several machines.
Is there a way of customise that file to enable/disable a plugin based on machine name or something like that?
As example, I have something like that in my .bash_profile:
# common things ... if [[ $(uname) == "Darwin" ]] then # mac settings else # linux settings fi