-1

When you open a CSV file with the CSV.vim plugin the separators, such as semicolons, do not visually divide the columns in a format like the screenshot below. How can I visually separate the columns like tabstop with CSV.vim plugin?

enter image description here

enter image description here

  • 1
    I'm not sure I completely understand your question but maybe tabular is what you are looking for? I allows you to automatically add enough spaces between separators to align them vertically. – statox Jan 25 '17 at 12:58
  • 1
    Read the documentation. – Christian Brabandt Jan 25 '17 at 17:39
2

You can use the :ArrangeColumn for that.

From the documentation :

If you would like all columns to be visually arranged, you can use the 
`:ArrangeColumn` or `:CSVArrangeColumn` command.

e.g.:

Before:

enter image description here

Result:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.