VIM: Move a numbered line to current cursor
Let’s say I’m on line 20 and I want to move line 10 to my current line. Useful for code refactoring.
How I used to do it
10G dd 19G p
The new way I’ll do it
Thanks to my learnings here:
Written on June 21, 2017 by evanbrodie