Skip to content

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

Description

@paynechu

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions