Development

VimPlugin

You must first sign up to be able to contribute.

Symfony plugin for VIM 7

Introduction

This plugin for Vim7+ brings a useful browsing functionality, according to the Symfony framework structure.

Features

  • Switching between action function/template view

As the presentation is separated from the logic, it's common to navigate between mymoduleActions::executeMyaction() and myactionSuccess.php

When editing actions.class.php

    public function executeMyaction() 
    {
      $this->var = 'some value';
      $this->test = 'test';           <------ cursor anywhere inside the function or on the function declaration
    }

Press <F8> to edit myactionSuccess.php :

    <h1>my action</h1>
    Welcome to my action 

Press <F8> again to edit back the action file, where the cursor position was when lefted

Installation

  • map the <F8> (or any other available) key to the switching command by adding this line to your ~/.vimrc :

silent map <F8> :SfSwitchView <CR>

Usage

  • use the <F8> key to switch views on editing an action or a template

Note

The root directory is detected using the current working directory in Vim ( :cwd ). For better usability, the plugin integrates well with the Project plugin, that detects this directory automaticaly for any project.

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.