Vim with Atom

Atom + VIM + shortcut

Background

Try VIM-like binding settings

--setting → open the settings folder --The keymap is based on tekkoc's Vim binding and spacevim. --Changed to p (panel) because the accidental explosion in the time lag of s hurts.

keymap.cson


'.editor.vim-mode-plus:not(.insert-mode)':
  'space space': 'command-palette:toggle'
  'space ,': 'application:show-settings'
  'space down': 'jumpy:toggle'
  'space 0': 'window:toggle-full-screen'
  'space 1': 'maximize-panes:maximize'
  'space 2': 'vim-mode-plus:maximize-pane'
  'space ¥': 'tree-view:toggle'
  'space /': 'fuzzy-finder:toggle-file-finder'
  'space w': 'core:save'
  'space q': 'core:close'
  'space c': 'pane:close'
  'space r': 'script:run'
  'space p n': 'application:new-file'
  'space p o': 'application:open-file'
  'space p c': 'pane:close'
  'space p [': 'pane:show-previous-recently-used-item'
  'space p ]': 'pane:show-next-recently-used-item'
  'space p s': 'pane:split-left-and-copy-active-item'
  'space p v': 'pane:split-up-and-copy-active-item'
  'space p h': 'window:focus-pane-on-left'
  'space p l': 'window:focus-pane-on-right'
  'space p j': 'window:focus-pane-below'
  'space p k': 'window:focus-pane-above'
  'space p p': 'project-manager:list-projects'
  'space p m': 'project-manager:alt-confirm'
  'space z c': 'editor:fold-current-row'
  'space z f': 'editor:unfold-current-row'
  'space b b': 'bookmarks:toggle-bookmark'
  'space b l': 'bookmarks:view-all'
  'space b j': 'bookmarks:jump-to-next-bookmark'
  'space b c': 'bookmarks:clear-bookmarks'
  'space g g': 'go-to-line:toggle'
  'space g j': 'tabler:go-to-line'
  'space e =': 'editor:auto-indent'
  'space e u': 'editor:upper-case'
  'space e l': 'editor:lower-case'
  'space e b': 'atom-beautify:beautify-editor'
  'space o p': 'markdown-preview:toggle'
  'space o d': 'split-diff:toggle'
  'space o t': 'todo-show:find-in-workspace'
  'space o r': 'rest-client:show'

When using Hydrogen on mac (2/12)

--If you use mac + Hydrogen, cmd-enter will be crushed (you can use it with Insert-Mode).

keymap.cson


#Add the following to the above settings(For MAC)
  'space 2': 'vim-mode-plus:maximize-pane'
'atom-text-editor.vim-mode-plus:not(.insert-mode)':
  'cmd-enter': 'hydrogen:run'

Recommended Posts

Vim with Atom
Python programming with Atom
Vim
vim
Format json with Vim (with python)
Until dealing with python in Atom
Prepare Python development environment with Atom
Build Vim with MinGW. (+ lua, + python)
vim command
Edit and save read-only files with vim
Follow Python style guides with Atom (flake8)
VIM settings
Introduction to Python with Atom (on the way)
Install vim7.3 (+ python2.4) from source (compatible with Gundo.vim)
Homebrew Vim doesn't start with Python 3.8 error Note