vim-symfony/README

49 lines
1.4 KiB
Plaintext
Raw Normal View History

2011-11-15 18:05:06 +01:00
Symfony2 plugin for ViM
2011-11-15 18:20:11 +01:00
=======================
2011-11-15 18:05:06 +01:00
2011-11-15 18:20:11 +01:00
This plugin handles:
* symfony routing autocompletion
* symfony DIC autocompletion
* symfony console
2011-11-15 18:20:11 +01:00
* php stack trace navigation using quickfix list
=========================
Variables:
2011-11-15 18:20:11 +01:00
You can overwride two variables on your .vimrc:
2011-11-15 18:20:11 +01:00
let g:SymfonyAppConsoleCaller = "php"
let g:SymfonyAppConsolePath = "app/console"
=========================
To handle routing or DIC autocompletion, you must define the path to your app console that returns valid output concerning dic and routing.
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.
<C-M> To open the Symfony interactive console.
2011-11-15 18:20:11 +01:00
=========================
To handle stack trace navigation with Symfony2, you can use this exception handler class:
https://github.com/docteurklein/vim-symfony/blob/master/VimExceptionHandler.php
Don't forget to require it in your autoload system.
Then you'll have to register the exception listener, for example (in your config_dev.yml):
services:
vim.stack_trace:
class: VimExceptionHandler
tags:
- { name: 'kernel.event_listener', event: 'kernel.exception', method: 'onKernelException' }
To use it in another system, just use the same class by typing:
// require 'VimExceptionHandler.php'
VimExceptionHandler::register();