You can also do it without an external package using a minor hack, with only slightly more effort. Here's how:
|
represents a cursor in these instructions.
Create cursors on all desired lines using Ctrl+Click or by selecting a block of text and pressing Ctrl+Shift+L. (selection docs)
Add additional spaces to the end of every word, until every cursor is at or past the point where you want your column (does not matter how far past):
foo | barr | foobar | baz |
(optional1) Type any character followed by a space; let's use
c
:foo c | barr c | foobar c | baz c |
Press Home to make the cursors go the beginning of the lines:
|foo c |barr c |foobar c |baz c
Press → (right arrow) until the cursors are where you want your column:
foo | c barr | c foobar | c baz | c
Press Ctrl+Shift+→ to select all following whitespace and
c
, then press Delete:foo | barr | foobar | baz |
(optional1) Press Delete again to clean up the extra whitespace character that we added in the optional step.
1 We use the c
character followed by a space only if there is additional content on the lines that we want to keep. Without it, Ctrl+Shift+→ would select the first word of any additional content on the lines, making deletion tricky.