/ search forward for a string ? search backward for a string D Delete the rest of the current line. J Join two lines. P Put the yank/delete buffer before the current cursor position. * x Delete the character under the cursor. X Delete one character before the cursor. * ZZ Exit from the editor, saving changes if necessary. * u Undo the last edit. p Put the yank/delete buffer after the cursor. s Replace characters. r Replace a character. m Set a mark at the current position (e.g. ma or mb). z Redraw the screen with the current line at the top (zRETURN), the middle (z.), or the bottom (z-).