sponsor Vim development Vim logo Vim Book Ad

symfony.vim : Useful editing tip for Symfony PHP Framework

 script karma  Rating 30/15, Downloaded by 3868  Comments, bugs, improvements  Vim wiki

created by
Nicolas MARTIN
script type

Usefull commands for symfony projects editing

* Switch between template view / module view ( <F8> key )

  While editing a module method, press <F8>. It will switch to the appropriate template view
  Press <F8> again to go back to the module method .

  It works with Actions and Components :

    function executeMyAction() < > myActionSuccess.php
    function executeMyComponent() < > _myComponent.php


* Support for xxxError, handleXXX, validateXXX
* Shortcuts to the layout template of an action/view
* Support for empty action files and missing templates

Feedbacks mostly appreciated : email.de.nicolas.martin@gmail.com
install details
- copy the symfony.vim in your plugin directory and run Vim.

- optionnaly map <F8> or any key to the switching command by typing : silent map <F8> :SfSwitchView <CR>

You can now easily switch between Action view / Template view of an action.

Note : When entering a buffer, the plugin detects the symfony root dir from the current working directory ( getpwd() )


rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
symfony.vim 0.7 2008-05-28 7.0 Nicolas MARTIN Major update : Symfony 1.1 compatibilty

The method parameters of an action introduced in 1.1 is now handled.

symfony 1.0.X : public function executeEdit()
symfony 1.1.X : public function executeEdit($request)
symfony.vim 0.6 2008-05-26 6.0 Nicolas MARTIN Enable use for custom symfony projects tree structure ( disabling directory presence check ) ( reported by Tom Haskins )
symfony.vim 0.5 2008-04-14 7.0 Nicolas MARTIN Added automatic sf_root_dir detection ( suggested by Grégoire Hubert )
symfony.vim 0.4 2008-03-06 7.0 Nicolas MARTIN Added : SfPluginLoad command replacing the manual path configuration
Modified : Installation details
symfony.vim 0.3 2008-02-29 6.0 Nicolas MARTIN Major update : Unix paths are now handled correctly

The plugin now works on Linux systems.
symfony.vim 0.2 2008-02-05 7.0 Nicolas MARTIN Added support for Components module/template switching
symfony.vim 0.1 2008-01-24 7.0 Nicolas MARTIN Bug fixes
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
Vim at Github