vim move multiple lines 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: how to edit multiple lines in vim
Move the cursor to the appropriate location.
Enter 'VISUAL BLOCK' mode (Ctrl v).
Use your directional keys to select required number of lines (j or k).
Press I (capital i).
Press Esc.
Note: Once exited out of 'VISUAL BLOCK' mode, changes will take effect.