Find file
Fetching contributors…
Cannot retrieve contributors at this time
130 lines (94 sloc) 4.04 KB


What is Project-Jumper?

Project Jumper is a Vim plugin which creates keyboard shortcuts for editing most common files or exploring most common directories in Symfony 1 and 2 (work in progress) frameworks. Unfortunately, it's heavy dependant on project directory structure.

Latest version

Latest version of Vim Project Jumper can be found at


Unpack all *.vim files and this README into ~/.vim/plugin/project-jumper/ directory. Restart Vim if necessary.

Important notice for Symfony 2 users: In order Project-Jumper to work you need to create a symfony2 file in your project main directory. It may be empty but it's better to use is as wrapper for app/console with content like this (also executable permissions need to be set for convenient use): php app/console $@


Default shortcuts work from Vim edit mode. To invoke a jump, keep ctrl and alt pressed and then type a key depending whare you're trying to jump to.

Project is determined during first jump and valid until Vim window is closed.

Default shortcuts

Symfony 1.4

Project related:

  • <C-M-t> Root: Explore project main dir.
  • <C-M-m> Model: Explore lib/model dir.
  • <C-M-s> Schema: Edit config/schema.yml (menu for multiple options).
  • <C-M-k> CSS: Explore web/css dir.
  • <C-M-j> JS: Explore web/js dir.
  • <C-M-e> Test: Explore test dir.
  • <C-M-h> Helper: Explore lib/helper dir.
  • <C-M-f> Form: Explore lib/form dir.
  • <C-M-l> Lib: Explore lib dir.
  • <C-M-q> SQL: Explore data/sql dir.
  • <C-M-x> Fixtures: Explore data/fixtures dir.
  • <C-M-p> Plugins: Explore plugins dir.

Application related (if your project has more that one application available options are shown):

  • <C-M-c> Controller: Edit actions.class.php when editing or exploring module templates.
  • <C-M-v> View: While cursor is placed on function header tries to edit associaded view. If none could be found, explores views directory.
  • <C-M-y> Layout: Edit $appname/templates/layout.php file (supports multiple options).
  • <C-M-o> Modules: Explore $appname/modules dir.
  • <C-M-r> Routing: Edit $appname/config/routing.yml file.
  • <C-M-g> AppConfig: Edit $appname/config/app.yml file.
  • <C-M-a> Application: Explore application main dir.

Applications by alphabetical order

  • <M-1> First app
  • <M-2> Second app
  • <M-3> Third app
  • <M-9> Ninth app

Symfony 2

Project related:

  • <C-M-t> Root: Explore project main dir.
  • <C-M-g> AppConfig: Explore app/config/ dir.
  • <C-M-b> Bundles: Explore src/*/ dir.
  • <C-M-n> Vendor: Explore vendor/ dir.
  • <C-M-y> Layout: edit app/Resources/views/base.html.twig

AppBundle related (Acme/AppBundle):

  • <C-M-m> Model: Explore Model dir.
  • <C-M-c> Controller: explore Controller dir.
  • <C-M-v> View: explore Resources/views dir.
  • <C-M-r> Routing: edit Resources/config/routing.yml file.
  • <C-M-f> Form: Explore Form/Type dir.

Bundles by alphabetical order

  • <M-1> First bundle
  • <M-2> Second bundle
  • <M-3> Third bundle
  • <M-9> Ninth bundle


Project related:

  • <C-M-t> Root: Explore project main dir.
  • <C-M-n> Vendor: Explore site-packages from venv dir.
  • <C-M-y> Layout: Edit src/templates/base.html
  • <C-M-h> Static HTML: Explore ../html
  • <C-M-d> Fabfile: Edit ../

Module related:

  • <C-M-g> Settings: Edit src/*/ dir.
  • <C-M-o> Modules: Explore src/* dirs (except templates/).
  • <C-M-m> Models: Edit src/*/
  • <C-M-c> Controller: Edit src/*/
  • <C-M-v> View: Explore src/templates dir.
  • <C-M-r> Routing: Edit src/*/
  • <C-M-f> Form: Explore src/*/
  • <C-M-i> Admin: Edit src/*/

Modules by alphabetical order

  • <M-1> First module
  • <M-2> Second module
  • <M-3> Third module
  • <M-9> Ninth module

Remapping shortucts

Just copy mappings from the beginning of project-jumper.vim file to your .vimrc and modify it.