--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
--
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/63d10be3.1c917.19a971ab937.Webtop.200%40btinternet.com.
No comments:
Post a Comment