my_snipmate_snippets


Ⅰ. 插件描述

customized snippets for snipmate (for vim)

Ⅱ. 基本信息

创建日期:  2011-11-07
使用用户:  1
Github星:  1
插件作者:  Joe Miragliuolo

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'joem/my-snipmate-snippets-holy-ground'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'joem/my-snipmate-snippets-holy-ground'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'joem/my-snipmate-snippets-holy-ground'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/joem/my_snipmate_snippets

Ⅳ. 文档说明

This is my customized snippets directory for snipMate (snipMate on vim.org/snipMate on GitHub) in vim. For the most part, these are the default snippets (not written by me), with a few additions or modifications. In some cases, I may have added an entire file or directory from someone else's snippets.

When I started this, I wasn't keeping track. But from now on, I'll note the credits for all additions. If you see an uncredited addition and you know who I should credit it to, please open an issue and let me know.

UPDATE: It looks like snipMate is no longer actively maintained, but there are forks that are (like MarcWeber/UltiSnips which is actually a fork of a different plugin that reads snipMate snippets). There's also an actively maintained repo of snippets called vim-snippets, and that's where a bunch of my snippets are now (at least partially) coming from.

Usage

To load these instead of the snippets that come with snipMate, add a line similar to the following to your .vimrc (modify it as necessary to where you installed this):

let g:snippets_dir= '~/.vim/bundle/my_snipmate_snippets/snippets'

(This may be slightly different on a Windows computer.)

NOTE: You can see that I've put mine in .vim/bundle, but you should know that pathogen doesn't actually do anything special with it.

添加新评论