Giter VIP home page Giter VIP logo

snipmate-snippets's Introduction

Description

A collection of snippets for use with snipmate

This repository is far more complete than the base snippets shipped with snipmate and is actively being contributed to.

There are over 50 contributors creating snippets for a variety of languages. I have done my best to pull together the best of them and package them together here. The original was created by Scrooloose.

There isn't an emphasis on a particular language, though it would seem most snippet users are ruby users, and this seems to be the most complete.

Approach

Each of the snippets is in a subirectory organized by filetype. Subsets are organized by filetype-set (and will also be loaded with filetype) Exceptions are made when a given snippet trigger contains a character that isn't filesystem friendly such as '*=>:' for example.

Installation

This is intended to replace the snippets that ship with snipmate as most (all) are reproduced here and will collide. I have a fork of snipmate that simply removes the original snippets, but is otherwise identical to the original snipmate

rm ~/.vim/snippets
git clone https://[email protected]/spf13/snipmate.vim.git
ln -s /path/to/repo ~/.vim/snippets

Alt. Installation

I have a complete vim configuration which includes both snipmate and these snipets as git submodules. It is available via github at spf13-vim.

It makes use of patogen to keep a very organized and clean .vim directory.

Snippets

snipMate.vim implements some of TextMate's snippets features in Vim. A snippet is a piece of often-typed text that you can insert into your document using a trigger word followed by a [tab].

Snippets can be defined in two ways. They can be in their own file, named after their trigger in 'snippets/[filetype]/[trigger].snippet', or they can be defined together in a 'snippets/[filetype].snippets' file.

Multiple Matches

To create a snippet with multiple matches using *.snippet files, simply place all the snippets in a subdirectory with the trigger name: 'snippets/[filetype]/[trigger]/[name].snippet'.

snipmate-snippets's People

Contributors

alvin2ye avatar bogdan avatar brianjriddle avatar enriquez avatar fishman avatar halorgium avatar jarmo avatar jashmenn avatar jmcantrell avatar joaovitor avatar jredville avatar jsahlen avatar kalkin avatar kfl62 avatar kris7t avatar mikem avatar nathmisaki avatar ncolgan avatar profpatsch avatar rafaelfranca avatar ramon avatar scorpio avatar scrooloose avatar spf13 avatar sunaku avatar uxp avatar zzeroo 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.