Thursday, March 19, 2015

Re: using input() inside a macro

On Thursday, March 19, 2015 at 2:01:12 PM UTC-5, Christian Brabandt wrote:
>
> While I don't think it is a good idea to call the input() function in a
> macro, this seems to have worked with a test macro (although it returned
> the same input each time it is run, which doesn't make much sense).
>

Consider a mapping that calls input() and then does something to the text.

If you record a macro that uses the mapping, it would make sense for the macro to do the exact same thing when you run it again. So input() should return the same thing in that situation. Or at least that seems reasonable.

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: