Vim snipMate Support

by Rigel Di Scala last modified Mar 14, 2011 01:18 PM
Contributors: witsch, tomster

A bundle of code snippets for use with the Vim editor and the snipMate plugin. Also includes a script that converts TextMate snippets to snipMate's format.

Project Description

This is a bundle of 'snipMate compatible' snippets generated from Witsch's excellent Zope snippets for TextMate. See:https://github.com/tomster/zope.tmbundle

Snippets for common Python, TAL and ZCML code blocks are provided.

A Python script that converts TextMate snippets in snipMate files is also included.

How do snippets work? See this screencast: http://vimeo.com/3535418

Requirements

Installation

Clone the github repository to get all the snippets and the script:

git clone http://github.com/zedr/zope-snipmate-bundle.git

Copy the snippets inside your $HOME/.vim/snippets directory:

mv zope-snipmate-bundle/snippets/*.snippets $HOME/.vim/snippets/

Finally add these lines (if not already present) in your $HOME/.vimrc configuration file:

au BufNewFile,BufRead *.pt set filetype=html.pt
au BufNewFile,BufRead *.zcml set filetype=xml.zcml

You can now use the snippets. For a working Vim + snipMate configuration, check my .vimrc (https://github.com/zedr/.zrvim)

Current Release

No stable release available yet.

If you are interested in getting the source code of this project, you can get it from the Code repository .

All Releases

Version Released Description Compatibility Licenses Status

Comments (0)