Is there a handy way to do this?

My input:

#   A
# - B

Desired output:

# - A
#   B

My current solution is xjphxkP, which seems like a lot of keystrokes.

I realize I could record a macro, but it seems like with "visual block" selection (ctrl-v) there should be a way to do it with one operation, enabling the . operator.

  • 1
    I think (untested) you could simplify to xjvpkP
    – D. Ben Knoble
    Mar 26, 2020 at 19:06


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.