reformat in vim for a nice column layout

后端 未结 13 1120
野性不改
野性不改 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 16:57

    You could use the csv.vim plugin.

    :%ArrangeColumn
    

    However, this will not do exactly what you have asked: it will right adjust the contents of cells, whereas you have your values aligned by the decimal point or by the first digit.

    The plugin has many other useful commands for working with CSV files.

提交回复
热议问题