Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8728809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:43:07+00:00 2026-06-13T08:43:07+00:00

I am having a problem in copying certain text from a file then copying

  • 0

I am having a problem in copying certain text from a file then copying it to a new split window.
3yy|new|p

in command mode its working

as when i press

‘p’ in split window after copying
its working

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:43:08+00:00Added an answer on June 13, 2026 at 8:43 am

    I understand that you want to:

    1. yank the current line and the two lines below in the current buffer,
    2. open an empty buffer in a new horizontal split and
    3. paste those three lines in the empty buffer.

    Is that correct?

    What I don’t get is why you would want to do it from Ex mode while it’s so easy (and working) in normal mode:

    3yy
    :new<cr>
    p
    

    I think that you are confusing ex mode, accessible with Q and command mode, accessible with :. You probably also confuse the :p[rint] command and the :pu[t] command.

    Do the following from normal mode:

    :.,+2y|new|put!
    

    It may be helpful to know that you can also directly write those three lines to a file with:

    :.,+2w filename
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a problem copying a file from a Symantec Enterprise Vault. Usually, I
Hello i am having problem in copying data from one NSDictionary to another i
I'm having a problem copying database from assets. When my database has a small
i'm having a weird problem about copying with Xcopy. I'm using Windows Server 2008
I'm having a problem with copying or scripting my database at a web host
I am having a problem with strncpy() copying an extra character at the length
I am having trouble with deep-copying a list. My main window, called Form1 ,
I'm having a really strange problem. I'm trying to download some file and store.
I'm having problem with a copying method in a simple C++ program. Everytime I
I am having a problem doing a simple http post request from my android

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.