Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Vim plugin which allows you to easily jump (using keyboard shortcuts) to most common files or directories in Symfony 1.4 projects. Next versions should support Symfony 2, Rails 3 and hopefully some other frameworks.
VimL
tree: ed6e26e726

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
project-jumper.vim

README.md

Project-Jumper 0.1

What is Project-Jumper?

Project Jumper is a Vim plugin which creates keyboard shortcuts for editing most common files or exploring most common directories. Currenty works only in Symfony 1.4 projects but I have plans to extend support to Symfony 2 and Rails 3.

Latest version

Latest version of Vim Project Jumper can be found at https://github.com/zergu/Vim-Project-Jumper

Installation

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

Usage

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.

Shortcuts are working only when current directory (you can check it with :pwd command) is from inside a project. Avoid using shortucts elsewhere cause it can do some heavy and unsuccessful file searching.

Default shortcuts

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-i> Filter: Explore lib/filter dir.
  • <C-M-l> Lib: Explore lib dir.
  • <C-M-q> SQL: Explore data/sql dir.
  • <C-M-x> Fixtures: Explore data/fixtures 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

Remapping shortucts

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

Something went wrong with that request. Please try again.