Today I learned that you can move the current line up or down with :m.
:m +1 - moves down 1 line
:m -2 - move up 2 lines
I’m used to using dd followed by a movement and then p but I may try this alternate method.
Today I learned that you can move the current line up or down with :m.
:m +1 - moves down 1 line
:m -2 - move up 2 lines
I’m used to using dd followed by a movement and then p but I may try this alternate method.