i not working in operator-pending mode when mapped.
kenxjy opened this issue · 0 comments
kenxjy commented
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:
With no .vimrc config using yiw
would yank the word where the cursor is positioned.
I have noremap u i
in my .vimrc, so you should expect yuw
to perform the same as yiw
however when pressing u
it exits operator-pending mode. This also happens when attempting duw
, cuw
, or any other action where operator-pending mode follows.
Upon further testing, this seems to happen regardless of what key noremap
's to i.
To Reproduce:
- Use
noremap u i
in your .vimrc, or enter the:noremap u i
command. - Attempt perform
yuw
,duw
orcuw
.
Environment (please complete the following information):
- OS: Windows 10
- Vimrc plugin version: 0.9
- Obsidian version: 1.3.5