I've seen many ways of creating vim Tabular patterns for a specific predetermined pattern. For example, in this answer I see a mapping for:
AddTabularPattern 1= /^[^=]*\zs=
Which allows you to do:
:Tabularize 1=
The regex above is hardcoded to match on the first equals character. Is there any way to define an arbitrary character instead, so that I could create a pattern that matches any character?
For example, I'd like to be able to do the following to match on the first "|" or the first "}" without having to create a separate predefined pattern for each.
:Tabularize 1|
:Tabularize 1}