how to move a line in vim code example
Example 1: vim move to specific line
# Basic syntax:
+G # In Vi/Vim, type a number and hold down shift+g
# Example usage:
50G # Moves you to line 50 in the document
Example 2: 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 --> --> :m0 -->
#
# or...
#
# :3m0 -->
Example 3: move to end and begin of line vim
For moving in vim use ^ to jump to start of line and $ to jump to end.
For jumping and appending to the end use "Shft+A" and "Shft+I" to start.