💻 Software
How can I distinguish current operating system in my .vimrc?
Fresh5 days ago
Mar 15, 20267835 viewsConfidence Score0%
0%
Problem
I use Vim on both OS X and Windows, with almost identical configuration. I would like to be able to use the same on the two operating systems, but there are a couple of things I need to configure differently. What I'd like to add to my file is: But I don't know what to use for and . Is this possibl…
Error Output
:if <windows> "some windows-specific settings here :elseif <os x> "some os x-specific settings here :endif
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How can I distinguish current operating system in my .vimrc?
Low Risk
N.B. Although both previous answers gave me enough information to figure out how to solve the problem (and received upvotes from me), neither actually gave the full answer. So that others with the same question don't have to do the research, I'm add…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix