VI command – D & x

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.

This entry was posted in linux. Bookmark the permalink.

One Response to VI command – D & x

  1. Your blog is so informative

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">