CodeIgniter Forums
Snippets for VIM SnipMate - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Snippets for VIM SnipMate (/showthread.php?tid=39446)



Snippets for VIM SnipMate - El Forum - 03-10-2011

[eluser]Unknown[/eluser]
I've looked in several places but I couldn't seem to find a great deal of VIM PHP snippets for CI so I decided to create my own php.snippets file. I've put up the file on gist.github.com.

https://gist.github.com/864821

My eventual goal is to have a snippet for every function in every class and helper. I know it's a big task so if you feel up to the challenge, please contribute to the file. All constructive comments are welcome.

If you've never used SnipMate for VIM, I suggest you take a look at Janus: https://github.com/carlhuda/janus

Janus bundles many different VIM plugins that integrate Git, Gist, Terminal, tab-completion, folder tree, and tons of other stuff. If you're using VIM for development, definitely download Janus.


Snippets for VIM SnipMate - El Forum - 08-12-2011

[eluser]Amzad Hossain[/eluser]
https://gist.github.com/1142549


Very minor changes :

* Removed closing tag for <?php
* add `Filename` for auto filename insertion for classc and classm