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 6994423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:53:26+00:00 2026-05-27T19:53:26+00:00

After I have opened a file include()ed with gf , how can I copy

  • 0

After I have opened a file include()ed with gf, how can I copy text from that file into the original file’s search function?

For instance, if I am working on a PHP file and it has a line:

include("someFile.php");

I would put the cursor on someFile.php and press gf. In that file I see the text function reallyLongFunctionName() {}. I would like to search for that function in the original file. I can copy the function name with v and then Ctrl-O my way back to the original file, but now how do I perform the search?

Thanks!

  • 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-05-27T19:53:26+00:00Added an answer on May 27, 2026 at 7:53 pm

    You can just press * on the function name, and when you return to the original file it will already be highlighted. Press n to find the first instance. * locates all instances of the word under the cursor in all buffers.

    It sounds like you’re doing a tag lookup (Ctl–]) in reverse.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ActionMailer controller that's supposed to send this file: /user_mailer/welcome_email.text.erb This is
I have a Java process that opens a file using a FileReader. How can
I have a program that writes to a FILE *cgiOut and just after it
I have the following basic code to read a text file from a StreamReader:
I have (after quite a bit of work) a web test that will upload
should i after i have created a svn repo, import one project folder into
How can I launch an application with administrator rights after I have completed an
Just wondering how I can paste an object after I have selected it in
Using String.Format how can i ensure all numbers have commas after every 3 digits
I have created a text file in Unix environment using Java code. For writing

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.