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

Remap with Mode works too sensitive

Open efirlus opened this issue 11 months ago • 1 comments

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:

A clear and concise description of what the bug is.

for example, this map is not works, because mode is changed when the first key is pressed nmap vv <C-v> " visual-block mode with vv in normal mode, I am using it with neovim

this is work, because it's already inside v-mode vmap v <C-v>

this 'too fast mode change' can be problem for this keymap also I using in neovim nmap vl <S-v> "visual-line mode with vl in normal mode

there are no timeoutlen in obsidian vimrc, so i can not handle this problem

To Reproduce:

Steps to reproduce the behavior:

you can just add that map and test

Environment (please complete the following information):

  • OS: windows 11
  • Vimrc plugin version: 0.10.2

Additional context:

Add any other context about the problem here.

other things are good enough.

efirlus avatar Jan 20 '25 07:01 efirlus

I have proposed a PR that adds support for this. Hope this helps. https://github.com/esm7/obsidian-vimrc-support/pull/258

adrocic avatar Feb 01 '25 06:02 adrocic