Hi
the /pattern/ feature of sort doesn't work if the recognized filetype is .tsv (which gives alternate colours for successive fields).
Is there a workaround, apart from copying it to a plain file and working on it there?
regards - Chris
------ Original Message ------
From: cbl...@256bit.org
To: vim...@googlegroups.com
Sent: Tuesday, November 18th 2025, 10:24
Subject: Re: :sort in .tsv file
On Mo, 17 Nov 2025, 'c.willis111 ' via vim_use wrote: > the /pattern/ feature of sort doesn't work if the recognized filetype is > .tsv (which gives alternate colours for successive fields). What exactly do you mean by this? Thanks, Christian --
Hi Christian
I have the .csv plugin.
When I use the pattern in the vim :sort command, it does not work as expected.
I was mistaken in an earlier message. I am sure this is due to the plugin. If I copy the file I am working on to a, so that the plugin no longer recognizes it as a .tsv, the sort works as I had expected originally. I then have to copy my result back to the .tsv file.
The question was, is there a neater way of using the vim sort.
regards - Chris
Subject: Re: :sort in .tsv file
On Mo, 17 Nov 2025, 'c.willis111 ' via vim_use wrote: > the /pattern/ feature of sort doesn't work if the recognized filetype is > .tsv (which gives alternate colours for successive fields). What exactly do you mean by this? Thanks, Christian --
Hi Christian
I have the .csv plugin.
When I use the pattern in the vim :sort command, it does not work as expected.
I was mistaken in an earlier message. I am sure this is due to the plugin. If I copy the file I am working on to a, so that the plugin no longer recognizes it as a .tsv, the sort works as I had expected originally. I then have to copy my result back to the .tsv file.
The question was, is there a neater way of using the vim sort.
regards - Chris
Hi Christian
it seems that if I type
:filetype plugin off
before my sort command, the sort works, despite the screen still showing the plugin layout. (Despite the fact that I still need to use the letter keys for extending the line visual area, rather than the cursor keys).
regards - Chris