On Oct 18, 2:35 pm, "Israel Chauca F." <[email protected]> wrote:
> Hello there,
>
> I have a plug-in that relies on imappings. When <Left>, <Right> or
> <BS> is in the mapping, the repeat command "." repeats everything
> typed after those special keys, ignoring all the previous keys.
>
> Let's say, I have set the following mapping:
> imap ( ()<Left>
>
> If I enter insert mode and type: (123Vim writes: (123)
>
> Enter normal mode and type '.', Vim writes: 123
>
> Which kind of makes the '.' command useless when the plug-in is used.
> Is there a workaround for that?
>

Sorry, but this is an intentional (though confusing) behavior of Vim.
See :help ins-special-special for all the commands that act this way.

You might be able to piece together a workaround by using <C-O>
to :let a variable to the current value of the @. register, then
completing your move, plus adding to/clearing this variable on
InsertLeave/InsertEnter events, and remapping the '.' command, but I'm
far from certain it will be worth the trouble.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to