esc + yy
To copy the line where cursor is located
Search for the letter y
Save and quit the editor
Confirm quit without saving