chrisbra/csv.vim

Aligning content of cell with line breaks

Closed this issue · 2 comments

Hi,

I was wondering whether csv.vim can display rows with line breaks inside them one the same line? Maybe I just haven't figured out how to do it but I wasn't able to get them to display correctly.

See the following example:

col1,col2,col3
val1,"val2.1
val2.2","val3.1
val3.2"

Screenshot 2022-07-18 at 15 01 30

In Excel or whatever other GUI, this would probably be displayed as such:

Screenshot 2022-07-18 at 14 59 25

Is that possible somehow with csv.vim? The way it's displayed at the moment makes it really difficult to align the respective "sub-rows" in my mind. I suspect the answer is that I should fix the issue by splitting the content into multiple rows but it would be better for my workflow like this and I wanted to be sure that I'm not just missing a command or setting.

Thanks!

Ok, I thought so. Thanks for the response.