# Let Vim insert mode escape (esc) to normal mode even if suggestion dropdown open

**URL:** <https://forum.obsidian.md/t/let-vim-insert-mode-escape-esc-to-normal-mode-even-if-suggestion-dropdown-open/35414>\
**Category:** Feature requests\
**Tags:** vim, valuable\
**Created:** [April 7, 2022, 2:57pm UTC](https://forum.obsidian.md/t/let-vim-insert-mode-escape-esc-to-normal-mode-even-if-suggestion-dropdown-open/35414 "2022-04-07T14:57:33Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![escapewindow](https://forum.obsidian.md/user_avatar/forum.obsidian.md/escapewindow/32/41484_2.png) [@escapewindow](https://forum.obsidian.md/u/escapewindow)\
**Post date:** [April 8, 2024, 2:07pm UTC](https://forum.obsidian.md/t/let-vim-insert-mode-escape-esc-to-normal-mode-even-if-suggestion-dropdown-open/35414/10 "2024-04-08T14:07:12Z")

</div>

This bug _really_ bothers me, enough so that I’ve switched to editing my Obsidian markdown in [neovim](https://neovim.io/) + [obsidian.nvim](https://github.com/epwalsh/obsidian.nvim), and only use Obsidian for minor edits and to view my vault.

I’d rather be able to use Obsidian for edits, so I’ve done some digging. It looks like the `escape` hardcode is [here](https://github.com/codemirror/autocomplete/blob/5ad2ebc861f2f61cdc943fc087a5bfb756a7d0fa/src/index.ts#L39-L47), in the CodeMirror autocomplete source. This specific `keymap` is read-only, but it appears the client can specify [multiple keymaps](https://codemirror.net/docs/ref/#view.keymap), e.g. from [ResourcesCo](https://github.com/ResourcesCo/app/blob/16fff6e8f0013c41d8bfd47d1839365480685b2f/web/src/components/page/CodeEditor/CodeEditor.js#L140-L150) (I was unable to find other open source examples.)

I believe Obsidian should be able to:

- provide hotkeys that override this keymap
- create a custom keymap using these hotkeys that overrides the `completionKeymap`, and set it at a higher priority

I believe I can’t verify in Obsidian without either access to Obsidian source or decompiling the binary.

---

_[View the full topic](https://forum.obsidian.md/t/let-vim-insert-mode-escape-esc-to-normal-mode-even-if-suggestion-dropdown-open/35414)._
