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

  • Home
  • SEARCH
  • 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 6836221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:19:48+00:00 2026-05-26T23:19:48+00:00

I use vim for programming. my current job based on Yii MVC framework. When

  • 0

I use vim for programming. my current job based on Yii MVC framework.

When you work with MVC framework, you are always navigating among models, controllers and views. I want to make save time navigation for my tasks.

The first is: i want jump to a model related controller. One model could have one controller for jumping to. Which i want to setup once in a project.

What is the best solution for this ?

My opinion is create a comment in a model header like phpDoc

/*
* @controller ControllerName
*/

And then write a vim function, which will find “ControllerName” in current file and open this file. Then bind it to a key combination.

What is your idea to implement it?

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-26T23:19:49+00:00Added an answer on May 26, 2026 at 11:19 pm

    This functionality is known as tag navigation. Chances are that your fileformat is already supported by the omnipresent exuberant ctags (guessing it is php, for sure).

    Then you’d basically do:

    :!ctags -R .
    :tj ControllerName
    

    You can use tab-completion (Control + Tab), do searches (:tj /troll + Tab)

    Ctags has numerous options to enrich/limit the kinds of objects tagged. To selectively act on certain files only:

    :tags +=controllertags
    :!ctags -o controllertags **/*Controller.php
    

    which will tag only controller sources in a separate tags file so you can keep working with the rest of your tags setup as before (in case you were already using it for other stuff)

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

Sidebar

Related Questions

I work in a multi-language environment and use Vim + ctags for navigating the
I'm using vim to edit files that use a programming language where the end
I am programming in C++ or Java. So I want to use Vim editor,
i use vim in screen for development and if i quit vim, the current
I am trying to use VIM for some programming. I am a total beginner
I use VIM as my main text editor here at work and I often
I always use vim + cscope to check symbol definition, and I find cscope
I use vim (7.1) on OpenVMS V7.3-2. I connect to VMS trough a telnet
I use Vim and Vim plugins for Visual Studio when writing C++. Often, I
I use VIM editor for PHP, i know many people will point to PDT

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.