Questions tagged [filetype-csv]

Questions about the csv file type.

Filter by
Sorted by
Tagged with
1 vote
1 answer
41 views

csv column colors in Vim 9

I just upgraded Vim to version 9.1 (under Windows). Seems now it improved the display of csv files, commas are shown as vertical lines (|), and the columns are displayed alternatively as yellow and ...
athos's user avatar
  • 195
1 vote
1 answer
34 views

How to change color scheme in a csv plug-in?

I learnt from this post that there is a csv plug-in. I tried this plug-in and it indeed arranged the csv file well. However, the color scheme is horrible on my screen. Is there anyway that I can ...
cat's user avatar
  • 33
0 votes
1 answer
39 views

How to predefine functions in syntax file?

I have a syntax file for CSV files. To be able setting the separator, there is a function ChangeChar() and the syn match ... terms are variable. To initialize it ; is used. But to call the SetMatches()...
Andy A.'s user avatar
  • 233
0 votes
1 answer
133 views

How to use variable in syntax match

I have made (better said got) a syntax file for CSV files. This works fine so far. But there is the semicolon used as seperator. I want to be able to change the seperator e.g. by a function / mapping /...
Andy A.'s user avatar
  • 233
0 votes
1 answer
110 views

Match/find and replace all series of tab characters with one tab

I have a tsv file that has the header separated by tabs but each row is separated by one or more tabs. The parser/viewer I'd like to use doesn't understand that the values are separated by a series of ...
Charles Coulter's user avatar
2 votes
1 answer
324 views

Ignoring the first line of a csv file when sorting in Vim

I need to sort a csv file containing a header using Vim commands. I currently have to following command (which uses the external sort): :%!sort -t ',' -k9,9 -k8,8 -k10n -k2n -k3n -k4n -k5n -k6n -k7n ...
Tomyy's user avatar
  • 21