Skip to content

Option to not count lines which do not have the delimiter into the first field length #23

yaccz opened this Issue Apr 19, 2013 · 1 comment

2 participants

yaccz commented Apr 19, 2013

Consider file contents:

bundle edit_line append_groups_starting(v) {
  "index"        slist => getindices("$(v)");

  "add_$(index)"     not => groupexists("$(index)"),
                 comment => "Class created if group does not exist";

         comment => "Append users into a group file format",
      ifvarclass => "add_$(index)";

If you want to :Tabularize all the content's on delimiter '=>' it will count eg. the whole first line as first column and format all the rest accordingly.

It would be very usefull to say 'Tabularize by => but completely omit/ignore lines which does not contain the delimiter'


You're looking for the (not yet documented) command :GTabularize - see the discussion at issue #10

You should be able to do what you want by doing :GTabularize /=> - it will work on all lines in the buffer by default, but it takes a range if you wanted to apply it to only the visual selection or some such.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.