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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:16:31+00:00 2026-05-30T15:16:31+00:00

Is there any way to show the current PHP function or class name in

  • 0

Is there any way to show the current PHP function or class name in the VIM command line? I found a plugin for showing C function names in the status line but it does not work for PHP and in any case I prefer the command line be used to save valuable vertical lines.

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-30T15:16:33+00:00Added an answer on May 30, 2026 at 3:16 pm

    EDIT

    While looking for something completely unrelated in TagList’s help I’ve just found these two functions:

    Tlist_Get_Tagname_By_Line()
    Tlist_Get_Tag_Prototype_By_Line()
    

    Adding this in my statusbar works beautifully:

    %{Tlist_Get_Tagname_By_Line()}
    

    Also, did you read the Vim Wiki? It has a bunch of tips trying to adress the same need. There is also this (untested) plugin.

    ENDEDIT

    If you are short on vertical space maybe you won’t mind using a bit of horizontal space?

    TagList and TagBar both show a vertical list of the tags used in the current buffer (and other opened documents in TagList’s case) that you can use to navigate your code.

    However, I’m not particularly a fan of having all sorts of informations (list of files, VCS status, list of tags, list of buffers/tabs…) displayed at all times: being able to read the name of the function you are in is only useful when you actually need to know it, otherwise it’s clutter. Vim’s own [{ followed by <C-o> are enough for me.

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

Sidebar

Related Questions

Is there any way to show two editing windows in Visual Studio? I would
Is there any way to show only week day with Date as: MON 03-JUL
Is there any way to show joptionpane in shutdownhook i.e I need to show
is there any way to show the driving directions in iphones MapKit? is there
Is there any way I can print/show images on top of each other. The
Is there any way to make Visual Studio show the code of a control
Is there any way to have a default MessageBox.Show() caption? Let says I would
is there any way how to enable Eclipse to show hints for parameters of
Is there any way to have a dropdown in excel that will show a
Is there a way in MySQL 5 to show only the current user's processes(queries)?

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.