On Thu, Dec 26, 2019 at 12:14 PM Chris Green <[email protected]> wrote:
>
> On Thu, Dec 26, 2019 at 12:08:25PM -0800, Marc Simpson wrote:
> > On Thu, Dec 26, 2019 at 11:43 AM Chris Green <[email protected]> wrote:
> > >
> > > It's been too long since I did this and I can't remember the way to do
> > > it.
> > >
> > > I want to sort a block of lines of text.
> >
> > you can use the ! operator with a motion, e.g.
> >
> >   1G!Gsort
> >
> > which will move to the first line, and sort through the end of file
> > (last line, G).  with marks 'a' and 'b' set, that would be:
> >
> >   'a!'bsort
> >
> > alternatively, you can do everything from the command prompt.
> > assuming you have the same two marks set:
> >
> >   :'a,'b!sort
> >
> > will do the trick.
> >
> Thanks Marc! :-)

my pleasure.  happy holidays.

Reply via email to