Skip to content

Instantly share code, notes, and snippets.

@chrissexton
Created November 19, 2014 18:03
Show Gist options
  • Select an option

  • Save chrissexton/a1926159b304254d837f to your computer and use it in GitHub Desktop.

Select an option

Save chrissexton/a1926159b304254d837f to your computer and use it in GitHub Desktop.
Helpers to facilitate a smoother vim-mode save experience in Atom
# 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')
'.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