Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 41 lines (29 sloc) 1.898 kb
39d10ba @spf13 Adding a README file
authored
1 ## Description
6ef6ff3 @spf13 oops, updating the markdown links in the readme
authored
2 A collection of snippets for use with [snipmate](http://github.com/msanders/snipmate.vim)
39d10ba @spf13 Adding a README file
authored
3
4 This repository is far more complete than the base snippets shipped with snipmate and is actively being contributed to.
5
6 There are over 50 contributors creating snippets for a variety of languages. I have done my best to pull
7 together the best of them and package them together here.
8
9 There isn't an emphasis on a particular language, though it would seem most snippet users are ruby users,
10 and this seems to be the most complete.
11
12 ## Installation
13
14 This is intended to replace the snippets that ship with snipmate as most (all) are reproduced here and will collide.
6ef6ff3 @spf13 oops, updating the markdown links in the readme
authored
15 I have a [fork](http://github.com/spf13/snipmate.vim) of snipmate that simply removes the original snippets,
16 but is otherwise identical to the original [snipmate](http://github.com/msanders/snipmate.vim)
39d10ba @spf13 Adding a README file
authored
17
18 rm ~/.vim/snippets
19 git clone https://spf13@github.com/spf13/snipmate.vim.git
20 ln -s /path/to/repo ~/.vim/snippets
21
22 ### Alt. Installation
23 I have a complete vim configuration which includes both snipmate and these snipets as git submodules.
6ef6ff3 @spf13 oops, updating the markdown links in the readme
authored
24 It is available via github at [spf13-vim](http://github.com/spf13/spf13-vim).
39d10ba @spf13 Adding a README file
authored
25
26 It makes use of patogen to keep a very organized and clean .vim directory.
27
28 ## Snippets
29 snipMate.vim implements some of TextMate's snippets features in Vim. A
30 snippet is a piece of often-typed text that you can insert into your
31 document using a trigger word followed by a <tab>.
32
33 Snippets can be defined in two ways. They can be in their own file, named
34 after their trigger in 'snippets/<filetype>/<trigger>.snippet', or they can be
35 defined together in a 'snippets/<filetype>.snippets' file.
36
37 ### Multiple Matches
38 To create a snippet with multiple matches using *.snippet files,
39 simply place all the snippets in a subdirectory with the trigger name:
40 'snippets/<filetype>/<trigger>/<name>.snippet'.
Something went wrong with that request. Please try again.