Reputation: 718
I recently added a script requiring vim-ruby,
The question I have is similar to: how do I detect OS X in my .vimrc file, so certain configurations will only apply to OS X?
but perhaps there is a clean way to check (as I want to propagate the same .vimrc file across all OSes: Win7-64, Linux(RHEL/Ubuntu), Mac, etc.)
Upvotes: 0
Views: 370
Reputation: 31040
You can use has('ruby')
in an if
statement. Try :echo has('ruby')
to see for yourself.
As an addendum, this works for all "+features" listed in :version
.
Upvotes: 4