How do you configure swap file location in Vim?
set directory=~/.vim/swap//
Set directory to control where swap files are stored.
set directory=~/.vim/swap//
Set directory to control where swap files are stored.
set noswapfile
Use set noswapfile to disable creating .
"adiw then move, "aP and diw
Delete the first word into register a with "adiw, move to the second word, paste register a before with "aP, then delete the remaining original.
qaddpq
Record a macro that deletes the current line with dd and pastes it below the next line with p.