Skip to content

Instantly share code, notes, and snippets.

@ponko2
Created October 31, 2015 08:38
Show Gist options
  • Save ponko2/2e9890dd077b648d44c3 to your computer and use it in GitHub Desktop.
Save ponko2/2e9890dd077b648d44c3 to your computer and use it in GitHub Desktop.
AtomをSpotlight等から起動するとopen-vimでmvimにPATHが通らない問題への応急処置
diff --git lib/open-vim.coffee lib/open-vim.coffee
index dc44209..bf41ad8 100644
--- lib/open-vim.coffee
+++ lib/open-vim.coffee
@@ -4,6 +4,7 @@ OS = require 'os'
module.exports =
activate: (state) ->
+ process.env.PATH += ":/usr/local/bin"
vimType = if OS.platform() is "darwin" then "mvim" else "gvim"
exec "which #{vimType}", (error, stdout, stderr) =>
if error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment