Skip to content

Instantly share code, notes, and snippets.

@fabiomcosta
Created December 29, 2015 21:59
Show Gist options
  • Save fabiomcosta/90a80134e85282b38853 to your computer and use it in GitHub Desktop.
Save fabiomcosta/90a80134e85282b38853 to your computer and use it in GitHub Desktop.
# Your keymap
#
# Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors
# to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
# Here's an example taken from Atom's built-in keymap:
#
# '.editor':
# 'enter': 'editor:newline'
#
# 'body':
# 'ctrl-P': 'core:move-up'
# 'ctrl-p': 'core:move-down'
#
'atom-text-editor.vim-mode-plus:not(.insert-mode)':
'y s': 'vim-mode-plus:surround'
'y s w': 'vim-mode-plus:surround-word'
'd s': 'vim-mode-plus:delete-surround'
'c s': 'vim-mode-plus:change-surround'
'd s': 'vim-mode-plus:delete-surround-any-pair'
'c s': 'vim-mode-plus:change-surround-any-pair'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment