Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 202 by [email protected]: Dot operator doesn't work with user-defined insert functions
http://code.google.com/p/vim/issues/detail?id=202

I'm trying to write a new (repeatable) operator that goes into insert mode with a movement, similar to the built-in 'c'. But (as far as I know) it can't be done without using feedkeys() or startinsert, both of which modify the effect of the dot operator. 'normal! i' (or any command that enters insert mode) doesn't work because the function doesn't wait for your input before it terminates.

As a result it's not actually possible to recreate the functionality of an operator like 'c' without it already existing as a primitive operator.

Another, related issue is with insert mode's <C-o>; whatever text you inserted before using <C-o> isn't repeated by the dot operator. Ideally the dot operator would insert the text before <C-o>, redo whatever action was performed with <C-o>, and then insert the text after if there is any. But it doesn't seem like the current behavior should be the expected one.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui