On 01/12/08 13:42, anhnmncb wrote:
> Hi, list,
> I use vimgrep to search timeline like<\d\+-\d\+-\d\+>  in my file, and let
> quckfix show me the result, the result sorted by line nubmer by default, I
> don't know how to let the result sorted by date?
>

The quickfix list is always sorted in the order matches (or errors, for 
a make) were found. But you can use ":w filename" (or maybe ":saveas 
filename" which is subtly different) to save a copy and then use the 
":sort" command. I'm not sure whether the quickfix buffer can be 
modified in situ.

See
        :help :w_f
        :help :saveas
        :help :sort


Best regards,
Tony.
-- 
Sauron is alive in Argentina!

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to