-------- Original Message ------
From: vim_use@googlegroups.com
To: vim_use@googlegroups.com
Sent: Tuesday, November 18th 2025, 01:42
Subject: Re: sort in .tsv file
On 17.11.25 19:13, Tim Chase wrote:
> On 2025-11-18 00:32, Vim Users wrote:
> > On 17.11.25 17:30, Tim Chase wrote:
> > >???? :2,$sort?? " sort by the first column
> > >???? :2,$sor /[^^I]*^I/???? " sort by the second column
> > >???? :2,$sor /\([^^I]*^I\)\{2}/ " sort by third column
> > >???? :2,$sor /\([^^I]*^I\)\{3}/ " sort by the fourth column
> > >???? :2,$sor n /\([^^I]*^I\)\{4}/ " sort numerically by the fifth column
> >
> > !}sort -k 1
>
> Even better! At least as long as you're on a Unix-like system where
> sort(1) is competent (its availability on Windows is a bit less useful)
>
Hi Tim,
That's what I suspected, but having not used the MS OS or their other products in 30 years in IT, or privately this last half century, I didn't feel competent to comment there. My suggestions are, though, hopefully unixversal. ;-)Erik
--
Thanks for the responses.
Tim, I think it is the ,csv plugin that is interfering. Also, I don't understand the significance of your "^|". Though it is reminiscent of the | that the .csv plugin inserts for the tabs (in the screen view).
I have a field that always (in the area I am interested in, starts with 1, so I was using the pattern /\t1/. I did try /.*\t1/ which failed the same.
Dvalin - at present, (but not for long) on windows. The vim sort seems to do the job properly whereas the Windows sort case ignores regardless, and doesn't have the unix flexibility.
thanks both - Chris
--
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.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/89d7660.1bf2f.19a96682895.Webtop.200%40btinternet.com.
No comments:
Post a Comment