gosh, I was wrong!

you don't even need vim7 for that...

just visual, !sort -k 2 and that's it

the problem is that after that the block are no longer
separated by whitespaces and a BIG blank screen is showed but the
rerefences are ahead, in the bottom of the file... That's why I
thought vim was removing everything...

Glad either works for you. If "sort -k" skips what you need, then it's a nice solution that doesn't require vim7 in the event you are stuck with an older version on a *nix box. The vim7 internal sort has the nice feature that you can find the sort-index by regexp, so if you have to skip over something "-k" doesn't treat kindly, vim7's internal sort may give you a hand. Additionally, since DOS sort doesn't have anything so smart as "-k", vim7's sort can save the day on a win32 box.

-tim



Reply via email to