Development

VimPlugin (diff)

You must first sign up to be able to contribute.

Changes from Version 1 of VimPlugin

Show
Ignore:
Author:
nykacho (IP: 213.244.28.44)
Timestamp:
03/28/08 12:48:05 (10 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • VimPlugin

    v0 v1  
     1= Symfony plugin for VIM 7 = 
     2 
     3== Introduction == 
     4 
     5This plugin for Vim7+ brings a useful browsing functionality, according to the Symfony framework structure. 
     6 
     7 
     8== Features == 
     9 
     10  * '''Switching between action function/template view''' 
     11   
     12  As the presentation is separated from the logic, it's common to navigate between {{{mymoduleActions::executeMyaction()}}} and {{{myactionSuccess.php}}} 
     13 
     14  When editing {{{actions.class.php}}} 
     15  {{{ 
     16    public function executeMyaction()  
     17    { 
     18      $this->var = 'some value'; 
     19      $this->test = 'test';           <------ cursor anywhere inside the function or on the function declaration 
     20    } 
     21  }}} 
     22 
     23  Press '''<F8>''' to edit  {{{myactionSuccess.php}}} : 
     24  {{{ 
     25    <h1>my action</h1> 
     26    Welcome to my action  
     27  }}}  
     28 
     29   
     30  Press '''<F8>''' again to edit back the action file, where the cursor position was when lefted 
     31 
     32 
     33== Installation == 
     34 
     35  * Download the plugin at [http://www.vim.org/scripts/script.php?script_id=2128] to your {{{$VIMFILES/plugins}}} directory 
     36 
     37  * map the <F8> (or any other available) key to the switching command by adding this line to your {{{~/.vimrc}}} : 
     38 
     39      {{{silent map <F8> :SfSwitchView <CR>}}} 
     40 
     41 
     42== Usage == 
     43 
     44 
     45  * Type this command ( and optionnaly add it to your {{{~/.vimrc}}} if you often edit a single project ) : 
     46 
     47      {{{:SfPluginLoad(/var/www/sites/myproject)}}} 
     48 
     49  * use the <F8> key to switch views on editing an action or a template