D
The D command deletes from the cursor position to the end of the line. (D is a shortcut for d$.)
x
Often you want to delete only one or two characters. Just as r is a special change command to replace a single character, x is a special delete command to delete a single character. x deletes only the character the cursor is on.