vim-ios icon indicating copy to clipboard operation
vim-ios copied to clipboard

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

Open paynechu opened this issue 11 years ago • 2 comments

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'"

paynechu avatar Dec 05 '12 03:12 paynechu

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.

eraserhd avatar Dec 06 '12 18:12 eraserhd

yes ~ just because xcrun cannot found

paynechu avatar Dec 07 '12 11:12 paynechu