Skip to content

Instantly share code, notes, and snippets.

@bookercodes
Created November 22, 2016 17:47
Show Gist options
  • Save bookercodes/9ebd37fac249074dd157759a452bd293 to your computer and use it in GitHub Desktop.
Save bookercodes/9ebd37fac249074dd157759a452bd293 to your computer and use it in GitHub Desktop.
# Editor
'atom-text-editor:not([mini])':
'ctrl-i': 'cursor-history:next'
'ctrl-o': 'cursor-history:prev'
# Normal node key-bindings
'atom-text-editor.vim-mode-plus.normal-mode':
'ctrl-j': 'window:focus-pane-below'
'ctrl-k': 'window:focus-pane-above'
'ctrl-h': 'window:focus-pane-on-left'
'ctrl-l': 'window:focus-pane-on-right'
'ctrl-w f': 'open-this:split-down'
'c o h': 'vim-mode-plus:clear-highlight-search'
'y s': 'vim-mode-plus:surround'
'g p': 'vim-mode-plus:select-latest-change'
'd s': 'vim-mode-plus:delete-surround-any-pair'
'c s': 'vim-mode-plus:change-surround-any-pair'
'[ q': 'linter:previous-error'
'] q': 'linter:next-error'
'[ space': 'editor:newline-above'
'] space': 'editor:newline-below'
'space l': 'linter-eslint:fix-file'
'\\ e': 'tree-view:toggle'
':': 'vim-mode-plus-ex-mode:open'
'!': 'vim-mode-plus-ex-mode:toggle-setting'
'g f': 'open-this:here'
# Visual mode key-bindings
'atom-text-editor.vim-mode-plus.visual-mode':
'ctrl-j': 'vim-mode-plus-user:move-selected-text-down'
'S': 'vim-mode-plus:surround'
'up': 'vim-mode-plus-user:move-selected-text-up'
'down': 'vim-mode-plus-user:move-selected-text-down'
'left': 'vim-mode-plus-user:move-selected-text-left'
'right': 'vim-mode-plus-user:move-selected-text-right'
# Normal OR Visual mode key-bindings
'atom-text-editor.vim-mode-plus.normal-mode, atom-text-editor.vim-mode-plus.visual-mode':
'g r': 'vim-mode-plus:replace-with-register'
'atom-text-editor.vim-mode-plus-search':
'ctrl-enter': 'vim-mode-plus-user:project-find-from-search'
'ctrl-w': 'editor:delete-to-beginning-of-word'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment