How to Move Lines in Vim
The aim of this page๐ is to memorize line movements in Vim.
Oct 26, 2022
1. NOTES
- If I want to swap one line with the line above I usually do the following
dd๐ ๐ P
dd
will delete the line you want to move- it also copies it to the clipboard (pops a line)
๐ ๐
moves up or down to where you want to insert the line- capital
P
will paste