reformat in vim for a nice column layout

后端 未结 13 1144
野性不改
野性不改 2020-11-30 16:21

I have this dataset in a csv file

1.33570301776, 3.61194e-06, 7.24503e-06, -9.91572e-06, 1.25098e-05, 0.0102828, 0.010352, 0.0102677, 0.0103789, 0.00161604,          


        
13条回答
  •  星月不相逢
    2020-11-30 17:06

    also if you have very long columns it can be handy to disable default wrapping

    :set nowrap
    :%!column -t
    

    (note in debian you also have a further option for column -n which if you want to split multiple adjacent delimiters)

提交回复
热议问题