Would be nice... #9

Closed
johndgiese opened this Issue Jun 19, 2012 · 3 comments

Projects

None yet

4 participants

@johndgiese

I really like your plugin, I have been using it a lot lately.

I know you talk about this in the readme, but it would be nice if the it was possible to align by the first match of a regular expression without having to add more code to the .vim file. Maybe you could have a Tabf command in addition to the Tab command.

Thanks!

@dannydulai

how do you match just the first item?

:Tab /_

but only for the first underscore?

@graywh
graywh commented Jul 31, 2014

@dannydulai You use a pattern that matches all non-underscores from the beginning of the line to an underscore. There's an example in the help: https://github.com/godlygeek/tabular/blob/master/doc/Tabular.txt#L133-151

@godlygeek
Owner

Closing per @graywh's correct answer.

@godlygeek godlygeek closed this May 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment