obsidian-vimrc-support icon indicating copy to clipboard operation
obsidian-vimrc-support copied to clipboard

:map stopped working with non asci characters.

Open DenJan123 opened this issue 1 year ago • 1 comments

Please Review Before Posting!

  • [ ] Codemirror with link https://codemirror-vim--util.repl.co doesn't open.
  • [x] I'm reasonably sure that this bug is related to 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

Every map function stopped working with non-ASCII characters, including special characters like .


To Reproduce

Steps to reproduce the behavior:

  1. Add the following mappings to your .vimrc file:
    inoremap № #
    vnoremap № #
    inoremap ё `
    vnoremap ё `
    inoremap Ё ~
    vnoremap Ё ~
    
  2. Try using the mappings in the Vimrc plugin.
  3. Notice that the mappings no longer work.

Expected Behavior

Mappings for non-ASCII characters, like or Cyrillic characters such as ё and Ё, should function as they did previously.


Environment

  • OS: Windows 11
  • Vimrc Plugin Version: 0.10.2

Additional Context

  • Mappings involving ASCII characters and special characters from a standard US keyboard layout still work correctly.
    Example:

    :map @ #
    

    This mapping functions as expected.

  • The issue appears to specifically affect non-ASCII characters and those outside the standard US keyboard layout.

DenJan123 avatar Dec 06 '24 15:12 DenJan123

It looks like this PR in codemirror-vim -> (https://github.com/replit/codemirror-vim/pull/198/commits/832a695b119e45d4158be6bd6b73aa44409d62fe) from the day before you submitted this issue is likely attempting to resolve the reason why you are experiencing this problem.

adrocic avatar Jan 31 '25 06:01 adrocic