Vim Tip: Copy characters below or above current line.

Quick Vim tip that I wanted to share:

When in Insert Mode:
Ctrl + y –  copy the character above the cursor into the current line
Ctrl + e –  copy the character below the cursor into the current line

Post navigation


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=""> <s> <strike> <strong>