开发者

Adding folder of snippets to snipmate

snipmate comes with a ton of snippet files. This covers most of the bases. However I would like to add some snippet collections created by other users. When I download these the snippets are broken down into and placed in folders instead. I tried adding one of these folders to the location of the other snippet files (snipmate/snippets/) but it doesn't appear that VIM detected them.

I don't see much documentation on adding additional snippets so I must have overlooked someth开发者_开发技巧ing.

Any suggestions?


Given that you are probably looking for rails snippets, I'd suggest you the ones that Mike Farmer wrote. You can find them here.

You can install them easily by doing:

git clone https://github.com/scrooloose/snipmate-snippets.git

rake deploy_local

As you can see he wrote a rake task for it and it worked very well for me!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜