{"action":"closed","issue":{"url":"https://api.github.com/repos/atom/vim-mode/issues/662","labels_url":"https://api.github.com/repos/atom/vim-mode/issues/662/labels{/name}","comments_url":"https://api.github.com/repos/atom/vim-mode/issues/662/comments","events_url":"https://api.github.com/repos/atom/vim-mode/issues/662/events","html_url":"https://github.com/atom/vim-mode/issues/662","id":75198017,"number":662,"title":"remapping `o` and `shift-O` not working properly","user":{"login":"babygau","id":1514823,"avatar_url":"https://avatars.githubusercontent.com/u/1514823?v=3","gravatar_id":"","url":"https://api.github.com/users/babygau","html_url":"https://github.com/babygau","followers_url":"https://api.github.com/users/babygau/followers","following_url":"https://api.github.com/users/babygau/following{/other_user}","gists_url":"https://api.github.com/users/babygau/gists{/gist_id}","starred_url":"https://api.github.com/users/babygau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babygau/subscriptions","organizations_url":"https://api.github.com/users/babygau/orgs","repos_url":"https://api.github.com/users/babygau/repos","events_url":"https://api.github.com/users/babygau/events{/privacy}","received_events_url":"https://api.github.com/users/babygau/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-11T12:00:12Z","updated_at":"2015-05-11T12:56:14Z","closed_at":"2015-05-11T12:56:14Z","body":"Hi guys,\r\n\r\nI'm trying to remap `o` and `shift-O` so that these keys will enter a new line (above or below) without entering insert-mode. But only one of them works correctly.\r\n\r\nIn `keymap.cson`:\r\n\r\n```coffeescript\r\n\r\n# The order really matters here\r\n# In this config, `o` will work except `shift-O`\r\n# If swap these mapping order, `shift-O` will works except `o`\r\n\r\n'atom-text-editor.vim-mode.command-mode':\r\n  'shift-O': 'exit-insert-mode-if-proceeded-by-shift-o'\r\n\r\n'atom-text-editor.vim-mode.command-mode':\r\n  'o': 'exit-insert-mode-if-proceeded-by-o'\r\n```\r\nIn `init.coffee`\r\n``` coffeescript\r\natom.commands.add 'atom-text-editor', 'exit-insert-mode-if-proceeded-by-o': (e) ->\r\n  atom.commands.dispatch(e.currentTarget, 'vim-mode:insert-below-with-newline')\r\n  atom.commands.dispatch(e.currentTarget, 'vim-mode:activate-command-mode')\r\n\r\natom.commands.add 'atom-text-editor', 'exit-insert-mode-if-proceeded-by-shift-o': (e) ->\r\n  atom.commands.dispatch(e.currentTarget, 'vim-mode:insert-above-with-newline')\r\n  atom.commands.dispatch(e.currentTarget, 'vim-mode:activate-command-mode')\r\n```\r\nAny help?\r\n"}}