FG
💻 Software

In vim, how can I move text to certain columns?

Fresh5 days ago
Mar 15, 20269280 views
Confidence Score0%
0%

Problem

I have text files of poems with line numbers on the right that look like this: Where the spaces between the ends of the lines and the line numbers are not consistent. How can I move the numbers to a particular column, so that they line up?

Error Output

Bedded in store of rotten fig-leaves soft,   40
And corded up in a tight olive-frail,   
Some lump, ah God, of lapis lazuli, 
Big as a Jew’s head cut…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: In vim, how can I move text to certain columns?

Low Risk

I wanted to achieve basically the same but for certain characters in software code. The characters can appear anywhere on the line but I wanted them (and anything to the right of them) to appear on a specific column. For example: I wanted it to look…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment