pdurbin / vim-tsv

Tab Separated Value niceties for Vim
13 stars 6 forks source link

Column Wrap #1

Open ViViDboarder opened 12 years ago

ViViDboarder commented 12 years ago

I'm not even sure this is possible. My Vim-fu needs some work.

But I was trying to think of a way to wrap a column to help display tab widths a little better.

Example being: Now

Column 1>>--Column 2>>--Column 3>>
My Value Col 1>>--------My Value for column 2>>--------My value for column 3>>

Proposed

Column 1>>--Column 2>>--Column 3>>
My Va...>>--My Va...>>--My va...>>

Then a way to toggle between overflow and wrapping would be good to allow an easy way to see if columns match up with headers and such.

pdurbin commented 11 years ago

I haven't really gotten into vim.csv but maybe it would meet your needs: http://www.vim.org/scripts/script.php?script_id=2830

In practice, when I have columns with many characters, I just increase the tabstop.

My vim-fu could use some work too. :)