Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document a tip for improved Insert Mode mappings for ESC
As discussed at length in issue atom#334, mapping double characters to ESC is a common Vim pattern (e.g, 'jj' or 'jk'). Atom supports this style of mapping, but the editor behavior is inconsistent with Vim in that the initial characters that partially match a mapping are not displayed on screen. This is jarring to the user. This PR adds documentation to the README that describes a two-step approach to mapping ESC that removes the delay from the editor and much more closely imitates Vim's behavior. This issue exists today in Atom 1.3.2. A future update to Atom may change the behavior of [KeymapManager](https://atom.io/docs/api/v1.3.2/KeymapManager) so that partial matches are displayed. Work in this area was most recently done in [PR atom#94 on atom-keymap](atom/atom-keymap#94). I considered adding this info to the Wiki, but the project doesn't currently have one, so I figured the README was the next-best place.
- Loading branch information