Created
November 19, 2014 18:03
-
-
Save chrissexton/a1926159b304254d837f to your computer and use it in GitHub Desktop.
Helpers to facilitate a smoother vim-mode save experience in Atom
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
| # Enable a wq action, we will bind the palette to ':' for access to this | |
| atom.workspaceView.command 'vim-mode-ext:wq', '.editor', -> | |
| editor = atom.workspaceView.getActiveView() | |
| editor.getEditor().save() | |
| editor.trigger('core:close') |
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
| '.editor.vim-mode:not(.insert-mode)': | |
| ':': 'command-palette:toggle' | |
| 'Z Z': 'vim-mode-ext:wq' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment