has anyone here had any luck with any of the vim “vi” tasks? this task asked for the following:
Open /home/bob/testfile file in any editor (vi, nano etc) and move line present on line no:1049 to line no: 5 .
when I opened the file in vi and go to the line 1049 by pressing :1049 and copy the content by pressing yy than again going back to line number 5 by pressing :5 and pasting the content by pressing p I can clearly see the content being pasted, than I quit and save by pressing :wq! the task fails
Hello guys, thank you all for your prompt responses and feedback, so this is still not working, this is what I am doing:
moving to line 1049 by doing the following - :1049 and it takes me to the line where it says “you found me” than I do YY and it cuts the line, immediately I go to line number 5 by doing :5 and pasting “P” into line number 5 which seems to work but when I click the check button it says it has not being moved, any suggestions?