On 2013-06-18 07:35, Ben Fritz wrote:
> On Tuesday, June 18, 2013 8:44:33 AM UTC-5, Tim Chase wrote:
> > I think I'd prefer it as an extra response to the confirmation:
> >
> > :g/foo/s/bar/baz/gc
> > ...
> > replace with baz (y/n/a/A/q/Q/l/^E/^Y)?
>
> That would be much nicer (also for the current options) if the
> displayed text gave some hint what each choice will actually do.
I've seen other programs that use similar prompts adding a "?"
option that will elaborate on what the various choices do (e.g. "git
add -p") right at the prompt. I've used vim long enough to know what
that prompt means without looking it up (well, except for "l" which I
could guess, but don't use enough to remember off the top of my
head), but I agree that a simple
replace with $REPLACEMENT (y/n/a/q/l/^E/^Y/?)?
might make it easier to make the decision mid-replacement rather than
needing to abort, possibly undo multiple changes, and then visit
:help s_flags
to learn what they mean.
-tim
--
--
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/groups/opt_out.
Tuesday, June 18, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment