Giter VIP home page Giter VIP logo

vim-snippets's Introduction

IMPORTANT: comment on: What about merging whith Ultisnip using its engine

Snipmate & UltiSnip Snippets

This repository contains snippets files for various programming languages.

It is community-maintained and many people have contributed snippet files and other improvements already.

Contents

snippets/*: snippets using snipmate format
UltiSnips/*: snippets using UltiSnips format

Snippet engines

There are different forks of snippet engines which allow the user to insert sippets by typing the name of a snippet hitting the expansion mapping.

garbas/vim-snipmate [4]:
  VimL, snipmate-snippets, engine sometimes behaves strange, supports
  rewriting snippets on the fly (eg adding a second version with folding
  markers)

MarcWeber/UltiSnips [6]:
  python, snipmate-snippets and UltiSnips-snippets

SirVer/ultisnips [7]:
  python, UltiSnips-snippets

github.com/Shougo/neosnippet [5]:
  viml, has a compatible mode allowing to reuse most snipmate snippets ?

XPTemplate:
  totally different syntax, does not read snippets contained in this file,
  but it is also very powerful

... there are some more, but they have less features which is why I don't
mention them here

UltiSnips engine has additional features such as "nested snippets".

Which one to use? If you have python give MarcWeber/UltiSnips a try because its fast and supports all important features. You can prefer the UltiSnip versions of the snippets by setting the "always_use_first_snippet" option to 1.

If you have VimL only (vim without python support) your best option is using garbas/vim-snipmate and cope with the minor bugs found in the engine.

Related repositories

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

 * https://github.com/rbonvall/snipmate-snippets-bib (snippets for BibTeX files)
 * https://github.com/sudar/vim-arduino-snippets (snippets for Arduino files)
 * https://github.com/zedr/zope-snipmate-bundle.git (snippets for Python, TAL and ZCML)
 * https://github.com/bonsaiben/bootstrap-snippets (snippets for Twitter Bootstrap markup, in HTML and Haml)

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

Historical notes

vim-snipmate was originally started by Michael Sanders who has now unfortunately abandoned the project. Rok Garbas is now maintaining a fork of the project in hopes of improving the existing code base.

Language maintainers

No one can really be proficient in all programming languages. If you would like to maintain snippets for a language, please get in touch.

Contributing notes

Until further work is done on vim-snipmate, please don't add folding markers into snippets. vim-snipmate has some comments about how to patch all snippets on the fly adding those.

Because MarcWeber/UltiSnips 6 supports also snipmate-snippets there is no need to duplicate all snippets - only those snippets who use advanced UltiSnips features should be duplicated in UltiSnips (?)

Currently all snippets from UltiSnips have been put into UltiSnips - some work on merging should be done (dropping duplicates etc)

Authors

For a list of authors, please see the AUTHORS files.

License

Just as the original snipMate plugin, all the snippets are licensed under the terms of the MIT license.

vim-snippets's People

Contributors

abroder avatar camilopayan avatar dlo avatar dsiw avatar erikw avatar fatih avatar georgeguimaraes avatar guileen avatar heytrav avatar honza avatar hzx avatar jb55 avatar juanpabloaj avatar kentaroi avatar kronn avatar ku1ik avatar marcweber avatar mclee avatar mwcz avatar ngquerol avatar nicklasos avatar phmongeau avatar soplakanets avatar swsnr avatar taq avatar theocrite avatar thisgeek avatar torbjornvatn avatar tormaroe avatar zeroem avatar

Watchers

 avatar  avatar  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.