Search code examples
vimalignmenttabular

How do I align like this with VIM's Tabular Plugin?


This is my code:

john,betty,wally,beth 
walter,george,thomas,john
herbert,bob,petty,mick`

Does anyone know how to align it to this with VIM's Tabular Plugin:

john,    betty,  wally,  beth
walter,  george, thomas, john
herbert, bob,    petty,  mick

I know how to do this in Align Plugin but can't find out how it works in Tabular.


Solution

  • Tabularize /,\zs
    

    See :help \zs

    Since the previous pattern doesn't work, try with this:

    Tabularize /[^,]\+,