move line in vi editor code example
Example: move a line to another line vim
--- second line ---
--- third line ---
--- first line ---
# Move your cursor on the "first line" (the third line), use the *move* command and
# pass your desired line number as an argument. Hit enter.
#
# :3 --> <ENTER> --> :m0 --> <ENTER>
#
# or...
#
# :3m0 --> <ENTER>