On Sun, Mar 17, 2013 at 8:03 PM, glts wrote:
> The "repeat.vim" plugin was created to solve this problem but it doesn't
> work for omaps neither. I don't know if you saw it but there is some
> discussion here:
>
> https://github.com/tpope/vim-repeat/issues/8

I already saw the discussion, because several people asked me about
repeatability of custom text objects implemented with vim-textobj-user
and most of them also told me the link.

But I don't believe that repeat.vim is a right solution for the problem.
repeat.vim is to enable repeatability for custom operators which take
extra arguments such as a {target} for ys{motion}{target} provided by
surround.vim.  Repeatability of custom motions and custom text objects
should be covered by another layer.  Especially, the "solution" posted
in the discussion

https://github.com/tpope/vim-repeat/issues/8#issuecomment-13951082

does not work with custom operators using repeat.vim.


> In my opinion, the redo buffer should be the same in both of your
> examples, namely "d:call Select()\n". But since there is only one redo
> buffer and you can call functions/:normal recursively, there's always
> the chance of it being overwritten.
>
> Folks, would it make sense to add another "top-level" redo buffer? This
> would be left untouched by nested :normal commands.

Thank you for the summary.  It seems to be reasonable for me, but there
might be drawbacks about compatibility or difficulty for further
maintenance.  I'd like to hear others' opinions.

-- 
-- 
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