Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Failure to activate vim-mode package #75

bjtitus opened this Issue · 10 comments

3 participants


I'm getting an activation failure on one machine. I have successfully installed on another with no issues. Thought I'd post the error here.

Failed to activate package named 'vim-mode' TypeError: Cannot call method 'each' of undefined
  at VimState.module.exports.VimState.handleCommands (/Users/bjtitus/.atom/packages/vim-mode/lib/
  at VimState.module.exports.VimState.setupCommandMode (/Users/bjtitus/.atom/packages/vim-mode/lib/
  at new VimState (/Users/bjtitus/.atom/packages/vim-mode/lib/
  at /Users/bjtitus/.atom/packages/vim-mode/lib/
  at WorkspaceView.module.exports.WorkspaceView.eachEditorView (/Applications/
  at Object.module.exports.activate (/Users/bjtitus/.atom/packages/vim-mode/lib/
  at Package.module.exports.Package.activateNow (/Applications/
  at /Applications/
  at Package.module.exports.Package.measure (/Applications/
  at Package.module.exports.Package.activate (/Applications/
  at PackageManager.module.exports.PackageManager.activatePackage (/Applications/
  at PackageManager.module.exports.PackageManager.activatePackages (/Applications/
  at PackageManager.module.exports.PackageManager.activate (/Applications/
  at Atom.module.exports.Atom.startEditorWindow (/Applications/
  at Object.<anonymous> (/Applications/
  at Object.<anonymous> (/Applications/
  at Module._compile (module.js:455:26)
  at Object.Module._extensions..js (module.js:473:10)
  at Module.load (/Applications/
  at Function.Module._load (module.js:311:12)
  at Module.require (module.js:363:17)
  at require (module.js:379:17)
  at window.onload (file:///Applications/…C%22initialPath%22%3A%22%2FUsers%2Fbjtitus%2Ftest%22%7D:26:9)

I hope to look into this myself a little later today or tomorrow. If anyone else has time feel free to take a look.


i believe (from a cursory look) that underscore.js isn't loaded (and vim-mode depends on it)


Is there something that can be done to load underscore.js?


_ is supposed to be included in the atom object (returned from require atom). it's not there. we can get at it by using

_ = require 'underscore-plus'

so that'd be a temporary fix. but i'm hesitant to commit that (because i'm guessing the atom devs are not a huge fan of hacks)


i actually think this issue is related to (#70), and we just need to update our vim-mode to version 0.7


I've tried installing vim-mode 0.7 with apm install vim-mode@0.7.0 and it returned with a 400 error: "Unable to download 400 Bad Request Repository inaccessible".


I can confirm that updating to 0.7.0 worked for me. Quick steps just in case:
apm uninstall vim-mode
apm install vim-mode@0.7.0

This can be closed but I want to make sure @colevoss is up and running as well.


like @colevoss, that doesn't seem to work (i'm unable to actually install 0.7.0 because of a 400 bad request)


You nailed it, @bjtitus
Uninstalling through the command line with apm uninstall vim-mode and then intsalling v 0.7.0 worked for me. After restarting Atom I was able to use vim-mode. I look forward to working with this and hopefully contributing.

Thanks guys.


There's definitely something weird going on with the package manager. The site shows 0.6.0 as the latest version and that it was updated very recently:

Might help for someone to re-publish 0.7.0

It might be that is just having problems. I've noticed that I often can't login or pages will stop loading when navigating around the site.

@bjtitus bjtitus closed this

This was also a duplicate of #69. My mistake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.