There are a lot of different ways in which one can yank complete single/multiple lines. Is there a way in which we can copy partial lines in vi, like just 10 characters of the line.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & 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.
I would guess the most common partial yanks are:
yaw: yank the word the cursor is currently in2yaw: yank the word the cursor in currently in and the next (2 words total)ya(: yank the matched parentheses containing the cursoryf.: yank from the cursor to the next.y$: yank from the cursor to the end of the lineAny movement keys can be used.