Answers for "how to go to specific line vim"

1

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>
Posted by: Guest on April-07-2021
0

vim go to line

:10
// if the line number is 10
:<line number>
// replace <line numeber> with the line numer :^)
Posted by: Guest on July-05-2021

Browse Popular Code Answers by Language