Giter Club home page Giter Club logo

vim-snipmate's Introduction

snipmate.vim

Author: Michael Sanders
Maintainer:Rok Garbas
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, `taq`_, alderz, pielgrzym
  • Split snippet files into separate git repository (github/honza/snipmate-snippets). [2011-06-20, honza] See 'Snippets repository' below.

  • Adding general snippets to css.snippets and htmldjango.snippets [2011-06-10, pielgrzym]

  • Adding css.snippets from tisho (https://github.com/tisho/css-snippets-snipmate) [2011-04-17, garbas]

  • Lots of updates to snippets.

  • Made the trigger key configurable, garbas#4. [2011-04-13, thenoseman]

  • Handle single-line or multiline snippets. [2011-03-22, johnbintz]

  • If there is only one snippet choose it directly. [2011-03-16, blueyed]

  • Add snippets file for "diff" filetype and add bang to function definitons, allowing for reload. [2011-03-06, blueyed]

  • Update snipmate to handle latest supertab version. [2011-02-09, ervandew]

  • Updated README: added contributors, instructions how to install snipMate, some spellchecking of my wonderful English, added this Changelog [2011-02-07, garbas]

  • Fixed bug: When leaving a placeholder unchanged and trying to jump to the next placeholder, the text of the first placeholder would get cleared. [2011-06-16, jgosmann]

  • From below mentioned merges I must specially mention MarcWeber's patch which brought quite a few functionalities/improvements:

    • snippets are loaded lazily.
    • snippets are no longer cached. Thus you always get the snippets you just wrote to a file without reloading anything.
    • When visually selecting a snippet in a .snippets file you can press <cr> to replace spaces by tabs automatically in a smart way.

    Big +1 to MarcWeber for this. Important to note is that we now depend on vim-addon-mw-utils and tlib. [2011-02-02, garbas]

  • Merged pull requests of MarcWeber, lilydjwg, henrik, steveno, asymmetric, jherdman, ironcamel, honza, jb55, robhudson, kozo2, MicahElliott, darkwise, redpill, thisgeek, sickill, pose, [2011-02-02, garbas]

Unfortunately there are many ways to how to install vim plugins. If you don't see your preferred way of installation plugins please consider updating this section. Basically, installation consists of 2 simple steps:

  1. Install vim-snipmate
  2. Install snippets
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).
  • the default set of snippets (optional but recommended). See 'Snippets repository' below.

Using VAM (recommended)

Add snipmate-snippets to the names to be installed. Or use
"github:name/repo" if you want to use a non standard upstream.
The default snippets depend on "snipmate" so VAM will fetch the core along
with its dependencies automatically

Using pathogen

% cd ~/.vim
% mkdir bundle
% cd bundle
% git clone git://github.com/garbas/vim-snipmate.git

# Install dependencies:
% git clone https://github.com/tomtom/tlib_vim.git
% git clone https://github.com/MarcWeber/vim-addon-mw-utils.git
% git clone https://github.com/honza/snipmate-snippets.git

Using Vundle

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

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

And :BundleInstall
% git clone git://github.com/honza/snipmate-snippets.git
% 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).

There is now one snippet repo containing almost all snippets. You are encouraged to submit any fixes and new snippets there.

https://github.com/honza/snipmate-snippets

We also encourage people to maintain sets of snippets for particular use cases. That all users can benefit from them people can list their snippet repositories here:

Installation using VAM: "github:rbonvall/snipmate-snippets-bib"

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
  • 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]

  • 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]

vim-snipmate's People

Contributors

alderz avatar bascht avatar blueyed avatar dxist avatar ervandew avatar fo60213 avatar garbas avatar henrik avatar holizz avatar honza avatar ironcamel avatar jgosmann avatar johnbintz avatar ku1ik avatar leandropincini avatar lilydjwg avatar lucapette avatar marcweber avatar micahelliott avatar mlen avatar muffinresearch avatar pielgrzym avatar pose avatar r00k avatar robhudson avatar srushti avatar statik avatar steveno avatar taq avatar thenoseman avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.