Skip to content

snipMate.vim aims to be a concise vim script that implements some of TextMate's snippets features in Vim.

Notifications You must be signed in to change notification settings

spf13/snipmate.vim

 
 

Repository files navigation

snipmate.vim

Author: Michael Sanders
Maintainer:Rok Garbas, spf13
Homepage:http://www.vim.org/scripts/script.php?script_id=2540
Contributors:MarcWeber, lilydjwg, henrik, steveno, asymmetric, jherdman, ironcamel, honza, jb55, robhudson, kozo2, MicahElliott, darkwise, redpill, thisgeek, sickill, pose, marutanm, r00k, jbernard, holizz, muffinresearch, statik, Eustaquio Rangel, alderz

I have updated snipmate to work with separate snippet repositories.

It works in parallel with my snipmate-snippets repository. (or even better, fork it and use your own)

git clone git://github.com/spf13/snipmate-snippets.git ln -s /path/to/snipmate-snippets ~/.vim/snippets
After several unsuccessful attempts of contacting Michael Sanders, no
commits in last half year and long pull request line on github (none of
pull requests were commented/replied/rejected) I decided to take action,
step up and bring some love to this widely used plugin.

But nothing to worry about. We all get busy, accupied with our daily work
or just lose interest in doing boring maintainance.

While reviewing pull requests on github.com/msanders I found lots of great
improvements and I decided to **friendly** fork it, review and apply patches
that were sent, notify all the patch submitters and decided to maintain
snipmate.vim from now on. Of course if somebody wants to
help, please do not hesitate to write me, I am open to any suggestions.

Maybe I will only maintain it for a while until Michael Sanders takes things
back into his hand or until some other super-hero shows up.

Tnx and happy snipmating, Rok Garbas, 2011-02-02

Unfortunatly there are many ways to how to install vim plugins. If you don't see you prefered way of installation plugins please consider adding updating this section.

Important to note is that since version 1.0 we depend on this 2 vim plugins:
  • vim-addon-mw-utils providing the implementation for caching parsed .snippets files.
  • tlib for tlib#input#List which provides the excellent filterable list selection view (and more).

Using VAM

Add snipmate to the names to be installed. Or use "github:name/repo" if you
want to use a non standard upstream.

VAM will also fetch the dependencies listed above for you automatically.

Using pathogen

% cd ~/.vim
% mkdir bundle
% cd bundle
% git clone https://github.com/tomtom/tlib_vim.git
% git clone https://github.com/MarcWeber/vim-addon-mw-utils.git
% git clone git://github.com/garbas/vim-snipmate.git

Then install any dependencies (see above).

Using Vundle

Install dependencies:
Bundle "git://github.com/MarcWeber/vim-addon-mw-utils.git"
Bundle "git://github.com/tomtom/tlib_vim.git"

Install:
Bundle "git://github.com/garbas/snipmate.vim.git"

And :BundleInstall
% git clone git://github.com/garbas/vim-snipmate.git
% cd snipmate.vim
% cp -R * ~/.vim

Then in vim:

:helptags ~/.vim/doc/

Then install any dependencies (see above).

  • Notify all "forkers" about new home and ask them nicely to review already merged changes and possibly send their changes. [2011-02-07, garbas]

  • I'd like to investigate whether xptemplate or snipmate has the better engine. So maybe my vision of the future could be making xptemplate read snippet files. It is not important enough for me to work on it right now as snipmate works reasonable well for me. [2011-02-02, MarcWeber]

  • Split core from snippets. Then reviewing patches and updates will be easier? Snippets should be distributed in additional repositories. Eg snipmate-snippets-ruby snipmate-snippets-vim snipmate-snippets-.... One repo containing snippets is: git://github.com/spf13/snipmate-snippets.git

    comment without verifying it: < Silex> MarcWeber: btw, check out ultisnips. Much better than snipmate imho

    And before this discussion xptemplate vs snipmate vs ultisnips .. continues we should create a wiki page comparing them and keep that up to date. If you volunteer tell me so that I can reference the link. [2011-02-02, MarcWeber]

About

snipMate.vim aims to be a concise vim script that implements some of TextMate's snippets features in Vim.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%