Tim Pope's unimpaired plugin, as well as my LineJuggler plugin provide ]e
mappings to quickly move line(s). With that, you can move a line from 19 to 17 (i.e. over 18) with 1[e
.
For removing surrounding tags, have a look at surround.vim - Delete/change/add parentheses/quotes/XML-tags , also from Tim. Alternatively, you could just delete the inner tag (dat
), and use my UnconditionalPaste plugin's glp
mapping to paste that as a separate line, or even use g[p
on line 18 to paste to above with the correct indent (of the current line).
PS: Instead of 19gg
, you can also do 19G
; still two key presses, but in parallel.