chrisbra / csv.vim

A Filetype plugin for csv files
http://www.vim.org/scripts/script.php?script_id=2830
Vim License
1.28k stars 62 forks source link

Aligning content of cell with line breaks #210

Closed romanhaa closed 2 years ago

romanhaa commented 2 years ago

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!

chrisbra commented 2 years ago

No this is not possible in vim

Am 18.07.2022 um 15:02 schrieb Roman Hillje @.***>:

 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"

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

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!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

romanhaa commented 2 years ago

Ok, I thought so. Thanks for the response.