On May 24, 5:32 pm, Tom Haskins-Vaughan <[EMAIL PROTECTED]>
wrote:

> Yeah, not sure if you've seen snippets in Textmate but it's similar to
> that. For example in a php document, if you type 'for' then hit the tab
> key you get the following:
>
> for ( $<{i}>=<{}>; $<{i}> < <{}>; $<{i}>++ )
> {
> <{}>}
>
> <{}>
>
> Then each time you press tab the cursor is placed at the next point in
> the for statement where you enter your value and so on to the next -- if
> that makes sense! :)

Sure yeah, I get the idea but was unaware that there was something
similar for vim.

> http://www.vim.org/scripts/script.php?script_id=1318
>
> At the moment the snippetsEmu plugin has a bundle of PHP snippets but
> I'm pretty sure we could add ones for symfony too.

After posting earlier I Googled and found the plugin. I installed it
and then installed the bundle (.vba) file afterwards. During the
install I saw that there was already a symfony bundle included?

After the install I tried editing a file but TAB didn't do anything
for me - do I need to enable the plugin in my vim session somehow?
If I do, Im assuming I can drop that command in my .vimrc?

> What sort of code fragments do you think would be useful? I was thinking
>
>   * model methods
>   * peer methods
>   * <?php foreach(...): ?> etc

Yes, that would be nice.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to