我在 MacVim 中,但我猜这也适用于 gVim。在插入模式下,如果我从系统剪贴板粘贴⌘</kbd>-v then get out Esc then repeat . all it does is move the cursor back a space. It's not registering the system paste as part of the keystrokes I typed.
奇怪的是,如果我输入⌘</kbd>-v in normal mode, I can hit . after to repeat it and it works fine.
我知道我可以打字<c-r>*
,但那很糟糕。
我试过inoremap <D-v> <c-r>*
了,但似乎没有效果。