DISQUS

DISQUS Hello!  The comments on this profile are unclaimed and thus are unverified.

Do they belong to you? Claim these comments.

Kesavan's picture

Unregistered

Feeds

aliases

  • Kesavan

Kesavan

7 months ago

in Copy and paste text with vi or vim | UNIX | Tech-Recipes on Tech-Recipes
Good one.,
1 reply
ddreggors Another nice trick is to use Visual Mode...

go to the line you wish to start yanking/cutting
CTRL-V (enable visual mode)
SHIFT-$ (select to end of line)
<down arrow> (select the lines you wish to yank/cut)
d (cut lines) or y (yank/copy)

now just use 'p' or 'P' as needed to paste below or above cursor!

This is the same as fuzzy's except it allows you to "SEE" what you are yanking.
Returning? Login