Add command to enter on interactive shell of Symfony

This commit is contained in:
Stéphane PY 2012-02-09 21:04:14 +01:00
parent a39314a5de
commit c3d53ca448
2 changed files with 12 additions and 1 deletions

10
README
View File

@ -4,15 +4,23 @@ Symfony2 plugin for ViM
This plugin handles:
* symfony routing autocompletion
* symfony DIC autocompletion
* symfony console
* php stack trace navigation using quickfix list
=========================
To handle routing or DIC autocompletion, you must have a ``app/console`` script that returns valid output concerning dic and routing.
To handle routing or DIC autocompletion, you must have a ``app/console`` script that returns valid output concerning dic and routing.
In other terms, check that ``app/console container:debug`` and ``app/console router:debug`` are working well.
Then you can use <C-x><C-u> (user completion feature) to see all routes and DIC services with some extra informations in the ViM's menu popup.
=========================
To open the Symfony console, you must have a ``app/console`` script to enter on interactive console.
<C-M> To open the console.
=========================
To handle stack trace navigation with Symfony2, you can use this exception handler class:

View File

@ -55,3 +55,6 @@ fun! CompleteSymfony(findstart, base)
return res
endfun
set completefunc=CompleteSymfony
" Open console
map <C-M> :! php app/console -s<CR>