Skip to content

Can't remap jk to Esc on Android #280

Description

@VikKalm

Please Review Before Posting!

  • I checked that the bug does not happen in the CodeMirror Vim demo. If it does, please report it there and not here.
  • I'm reasonably sure that this bug is indeed about the Vimrc file support and not a general Vim in Obsidian issue. If it's a general Vim issue, report it here.

Describe the bug:

Tried to remap jk to but it doesn't work.

To Reproduce:

  • Turned on Vim Mode in my Obsidian
  • Installed Obsidian-vimrc plugin
  • Create a file: Vault/.obsidian.vimrc (near the .obsidian directory) and put folllowing contents:
inoremap jk <Esc>
inoremap jj <Esc>
inoremap kk <Esc>
inoremap JK <Esc>
  • Restarted Obsidian

So vim mode workes fine, it goes to Insert mode fine with i but remapping doesn't work, as I can't leave the insert mode with those key bindings. Tried with both inoremap and imap.

How do I check if the .obsidian.vimrc loaded properly?

Environment (please complete the following information):

  • OS: Android 13
  • Vimrc plugin version: 0.10.2

Additional context:

n/a

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions