Thursday, February 7, 2013

Re: Sorting multiple "sections"

On 10:58 Thu 07 Feb , Paul wrote:
> On Friday, 01 February, 2013 at 06:40:44 GMT, Christian Brabandt wrote:
> >> What I need to do is figure the most efficient way to sort each list
> >> in each section alphabetically.
> >
> >You can combine a :g command with the sort command, e.g. something like
> >this:
> >:g/^-\+$/+2;'}-sort
>
> Where's the "-" in "-sort" documented? Ie. How did you know you could do that? :)
>
> --
>
> .
>
> --
> --
> 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.
>

It is documented under
:help :range
see the first paragraph under the list on which you land with the above
command.

Best,
Marcin

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

No comments: