From c3d53ca44821eaaf07d7986e837b3bb7cbdebbd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ste=CC=81phane=20PY?= Date: Thu, 9 Feb 2012 21:04:14 +0100 Subject: [PATCH] Add command to enter on interactive shell of Symfony --- README | 10 +++++++++- plugin/symfonycomplete.vim | 3 +++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README b/README index dea5730..9986cf4 100644 --- a/README +++ b/README @@ -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 (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. + + To open the console. + ========================= To handle stack trace navigation with Symfony2, you can use this exception handler class: diff --git a/plugin/symfonycomplete.vim b/plugin/symfonycomplete.vim index 099e24b..6e236d7 100644 --- a/plugin/symfonycomplete.vim +++ b/plugin/symfonycomplete.vim @@ -55,3 +55,6 @@ fun! CompleteSymfony(findstart, base) return res endfun set completefunc=CompleteSymfony + +" Open console +map :! php app/console -s