Created
November 10, 2016 17:12
-
-
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/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'.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