There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

mrbn ,
@mrbn@lemmy.ca avatar

<span style="color:#323232;">command! -range -nargs=1 PadColumns call PadColumns(<line1>, <line2>, <args>)
</span><span style="color:#323232;">
</span><span style="color:#323232;">function! PadColumns(start, end, columns)
</span><span style="color:#323232;">    execute a:start.','.a:end.'s/(.*)zss*$/='.'repeat(" ", a:columns - len(submatch(1)))'
</span><span style="color:#323232;">endfunction
</span>

Use by typing in Normal mode :PadColumns 20. This will add spaces after the line or selected lines to the column you specify (in this case, 20).

You could probably improve this by getting the length of the longest line and so you dont need to specify the specific column to add spaces to (20), and instead just add say 5 spaces after longest line for all lines.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines