Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need to auto. disable when not in the mac platform. for now it will just prompt error #6

Open
paynechu opened this issue Dec 5, 2012 · 2 comments

Comments

@paynechu
Copy link

paynechu commented Dec 5, 2012

diff --git a/plugin/ios.vim b/plugin/ios.vim
index 5168ab6..0e64256 100644
--- a/plugin/ios.vim
+++ b/plugin/ios.vim
@@ -10,6 +10,12 @@ if !has('ruby')
finish
endif

+if !has('unix')
+ finish
+elseif !(system('uname') =~ 'Darwin')
+ finish
+endif
+
let s:LibPath = expand('<sfile>:h:h') . '/lib'
execute "ruby $:.push('" . s:LibPath . "')"
execute "ruby require 'ios/vim'"

@eraserhd
Copy link
Owner

eraserhd commented Dec 6, 2012

Cool, thanks!

What's the error on non-Mac? Is it that 'xcrun' isn't in the path? If so, I'd rather catch that directly.

@paynechu
Copy link
Author

paynechu commented Dec 7, 2012

yes ~ just because xcrun cannot found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants