On 2008-12-01, Tony Mechelynck wrote: > > 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.
Yes, but I don't want this way, because sometimes I vimgrep a file which has crypted by vim and I don't want so many result written to a file and I forgot to del it. I tried to save buffer to a temporary list variable which each atom is a line in buffer then sort them and vimgrey, but without lucky (I'm a vimscript newbie). -- Regards, anhnmncb --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
