How do tabularize all commas after instances of EST[ so that text like

Item 1 //EST[5555m, 6666m]
Item 2 //EST[1m, 300m]

gets transformed into something like:

Item 1 //EST[5555m , 6666m]
Item 2 //EST[1m    , 300m]

The best starting command I know is :Tabularize \,, but it's not quite specific enough because it tabularizes all commas and not just those proceeding EST[.

  • It seems to me that this is basically the same as your other question: "How do I use :Tabular only for delimiters after a certain pattern?", so I've marked it as a duplicate for now. If it's not a duplicate then let me know. Commented Jun 16, 2017 at 3:56

1 Answer 1


You could try installing the tabular plugin. It looks like it will take a regular expression and tabularize the contents of your file. There are examples in the documentation such as:


After running :Tabularize /,/r1c1l0:

abc , def, ghi
  a , b
  a , b  ,  c

and since you have an accessible expression of the comma after EST[ it looks like a good fit.

  • Thanks for your answer; however, I'm having trouble knowing what expression to place after :Tabularize /. Commented Jun 14, 2017 at 15:53
  • How about :Tabularize /EST[.*,/ This would look for EST[any characters, I meant to add the link to the Tabularize screencast from this answer vi.stackexchange.com/questions/8105/… about using regular expressions with Tabularize.
    – DDay
    Commented Jun 14, 2017 at 17:15

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