Alex Rivera | Logout

copy partial lines in VI

Asked 2012-10-08T10:36:34.657
15

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.

Edit
Report

1 Answer

4

You can do yMovement, so for 10 characters: y10l yanks 10 characters from (and including) the current cursor position

answered 2012-10-08T10:40:49.903

Your Answer