On 10/26/2014 05:24 PM, Tim Chase wrote:
> It's definitely part of the command. The trick is knowing that
> "[cmd]" can include a range relative to the line(s) matched by the :g
> command. I had to dig around to find references in the help, but
> I found a couple examples using a range as part of the [cmd]:
>
> :help collapse
>
> as well as around lines 411 & 448 of ":help usr_25.txt".
>
> I do this all the time as it's very powerful. It's been in vi/ex as
> long as I know/remember, and even works in the venerable "ed".
>
> The only gotcha that I've found is when your relative ranges walk off
> the top/bottom of the file, triggering the aforementioned edge-cases.
Thanks! As the "resident Ex junkie"[1] :-) you've probably
shown this on-list before, but it's good to see examples in the
documentation as well. I've sent a small documentation patch to
make it explicit in :help :global.
Michael Henry
[1]: https://www.mail-archive.com/vim@vim.org/msg13769.html,
last paragraph.
--
--
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.
Monday, October 27, 2014
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment