M move the cursor to the middle line in the window. L move the cursor to the last line in the window. O open an empty line above the current line and change vi from keystroke mode to insert mode. G move the cursor to a particular line. G by itself causes the cursor to go to the last line in the buffer.
G causes the cursor to go to the nth line in the buffer.
Pressing the y key causes the specified object to be yanked into a supplementary buffer. Vi has many ways to specify an object. Vi has more than one supplementary buffer, the particular one used in this example is known as the unnamed buffer. A yanked object is not removed from the window, or from the file, but a copy of it is placed in the unnamed buffer. D deletes everything from the current cursor position to the end of the line.