Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm not familiar with Tabular and there might be an option to do this, but I would simply change the second <code>\s</code> to <code>\s\+</code> in order to match any amount of whitespace:</p> <pre><code>Tabularize /^\(.\{-}\zs\s\+\)\{2}/l0 </code></pre> <p><strong>Edit:</strong> Here's a more proper solution, combining the steps into one:</p> <pre><code>Tabularize /\(^\(\S*\s\)\{,1}\)\@&lt;=\S*\zs\s/l0 </code></pre> <p>The first part is a lookbehind that matches up to the 0th or 1st space, any non-whitespace characters are then skipped, and the next space is matched (the 1st and 2nd, respectively). This can be generalized to any range; e.g. to align by the 2nd through 5th spaces, use <code>\{1,4}</code>.</p> <p><strong>Edit:</strong> If you need to align by a set of spaces that do not constitute a range in that sense, I would utilize logical ORs in the lookbehind. Unfortunately, this becomes much more clumsy and repetitive. For example, to align by the 1st and 3rd spaces:</p> <pre><code>Tabularize /\(^\(\(\S*\s\)\{0}\|\(\S*\s\)\{2}\)\)\@&lt;=\S*\zs\s/l0 </code></pre> <p>In order to align each column differently, specify multiple <code>[lcr]#</code> formats. Note that every separating and separated column is counted; e.g. an alignment by 2 spaces results in 5 columns that will be formatted. In order to align by the 1st and 3rd spaces, and to right justify the middle column of text:</p> <pre><code>Tabularize /\(^\(\(\S*\s\)\{0}\|\(\S*\s\)\{2}\)\)\@&lt;=\S*\zs\s/l0l0r0l0l0 </code></pre> <p>Since the formats cycle if you specify fewer than the number of columns, <code>l0l0r0</code> would also suffice here, but it's probably a good idea to be explicit.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload