Thursday, September 16, 2010

Re: sorting numbers

On Sep 16, 11:47 am, <J.Hofm...@e-punkt.eu> wrote:
> I have these Numbers, a :sort does the following
>
> 10
> 1000
> 101
> 1010
> 11
>
> But I d like
>
> 10
> 11
> 101
> 1000
> 1010
>
> How can I do a sort for Numbers?

:sort n

This works for me, Vim 7.2 & 7.3 on Windows.
":help sorting" offers the alternative of defining your own
sort function if that doesn't work.

regards,
Geoff

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

No comments: