How To Copy And Paste In Linux Vi Editor?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Open the file in the vi editor using the vi command followed by the file name: $ vi filename
2. Enter into command mode by pressing the Esc key.
3. Move the cursor to the starting line of text that you want to copy.
4. Press Shift+v to enter into visual line mode.
5. Using the up and down arrow keys, select the lines of text that you want to copy.
6. Press y to copy the text.
7. Move the cursor to the location where you want to paste the copied text.
8. Press p to paste the copied text.