Sunday, December 6, 2020

Re: Tab separated fields

There is a really useful plugin you can download off http://vim8.org called csv.vim. I believe you can change the separator from comma to tab, though I haven't tried it with anything but commas.

Even if you can't change the separator, you could always do a global substitution to replace all tabs with commas, do your work and then do another substitution to replace all commas with tabs. If you're concerned about actual commas that may be in your text, you could first do a substitution to replace them with the word COMMA so they are retained. 

--

Salman

On Sun, Dec 6, 2020, 11:37 'c.willis111@btinternet.com' via vim_use <vim_use@googlegroups.com> wrote:

Hi


are there commands to work in the nth tab separated field (like awk)? As I understand it block visual doesn't do this.


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 on the web visit https://groups.google.com/d/msgid/vim_use/7087ee99.15fd.17638ea5a61.Webtop.223%40btinternet.com.

--
--
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 on the web visit https://groups.google.com/d/msgid/vim_use/CANuxnEf6By71XoX0RNN1G8U2wsg%3DEZUqZvWxduX60fcJH-5wMg%40mail.gmail.com.

No comments:

Post a Comment