Skip to content

Instantly share code, notes, and snippets.

@ArturT
Created November 10, 2016 17:12
Show Gist options
  • Save ArturT/ea1e4175adf086c69b4a30ccee21a672 to your computer and use it in GitHub Desktop.
Save ArturT/ea1e4175adf086c69b4a30ccee21a672 to your computer and use it in GitHub Desktop.
Toggle vim mode plus in Atom editor. Based on http://chibicode.com/useful-atom-vim-mode-snippets/
atom.commands.add 'atom-text-editor',
'user:toggle-vim-mode-plus': (event) ->
if atom.packages.isPackageDisabled("vim-mode-plus")
atom.packages.enablePackage("vim-mode-plus")
else
atom.packages.disablePackage("vim-mode-plus")
'.platform-darwin':
'cmd-ctrl-space': 'user:toggle-vim-mode-plus'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment