Skip to content

Instantly share code, notes, and snippets.

@nek023
Created February 24, 2015 12:29
Show Gist options
  • Save nek023/260f4f61424ca1995cc3 to your computer and use it in GitHub Desktop.
Save nek023/260f4f61424ca1995cc3 to your computer and use it in GitHub Desktop.
Atom keymaps
# 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'
#
# '.workspace':
# 'ctrl-P': 'core:move-up'
# 'ctrl-p': 'core:move-down'
#
'.editor.vim-mode:not(.insert-mode)':
'9': 'vim-mode:move-to-first-character-of-line'
'0': 'vim-mode:move-to-last-character-of-line'
'H': 'vim-mode:move-to-previous-word'
'J': 'vim-mode:move-to-next-paragraph'
'K': 'vim-mode:move-to-previous-paragraph'
'L': 'vim-mode:move-to-next-word'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment