Personally, I would pipe it through an external command, eg:
  :%! sort -n -k3
Within Vim on a Linux box that command results in text roughly like so for
me:
Bar()               2      0.132    0.066
Foo.set_bar()       2      0.2234   0.1117
FooBar.set_foo()  173      6.6418   0.038392
Foo..ctor()         1     10.4901  10.4901
FooBar.Calc()     358   1164.8912   3.253886
(I've manually inserted some space for readability reasons.)
~ Tim
On Mon, Mar 12, 2018 at 01:50:41PM -0700, Ni Va wrote:
> Hi,
> 
> I don't happen to sort this kind of list by the third float numbered column.
> 
> 
> 
> Foo..ctor()    1    10.4901    10.4901
> Bar()    2    0.132    0.066
> FooBar.set_foo()    173    6.6418    0.038392
> Foo.set_bar()    2    0.2234    0.1117
> FooBar.Calc()    358    1164.8912    3.253886
> 
> 
> -- 
> -- 
> 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.
-- 
-- 
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, March 12, 2018
Subscribe to:
Post Comments (Atom)
 
No comments:
Post a Comment