Monday, April 5, 2010

y YY p P

Hi All,

You may think as to what is y YY p P and all shit???? :P

Ok sorry.. !!

They are the vi editor commands to copy and paste.

1. A 'y' and 'YY' and 'p' and 'P' are one and the same.

To copy 1 line of a file in a vi editor

In the beginning of that line you can use 'y' or 'YY' and to paste it is 'p' or 'P' in the command mode.

Do read about the different modes of vi editor..

Please find that above link short and sweet... :)

Take care,
Ananth Gouri

No comments:

Post a Comment