Categories

 

April 2007
M T W T F S S
« Mar   Aug »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

What I'm Doing...

PlaytimePriya and KunalIMG00015.jpgIMG00017.jpgFallColors.jpgSpring

Copy and paste in Vi/Vim

This is a neat trick to know and saves a lot of time:

  1. Go to the beginning of the line where you want to start copying.
  2. Make sure you are in the command mode. (Hit ESC).
  3. Type “ma”. Which means, you are marking the spot with “a”.
  4. Go to the line till where you want to copy.
  5. type y`a (yank to mark a). The ` is the back tick.
  6. Now go to the place where you want to paste the text.
  7. type p

Share

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>