drupal-snippets


Ⅰ. 插件描述

Generates Drupal snipMate snippets.

Ⅱ. 基本信息

创建日期:  2011-08-10
使用用户:  1
Github星:  9
插件作者:  Jonathan DeLaigle

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'grndlvl/drupal-snippets'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'grndlvl/drupal-snippets'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'grndlvl/drupal-snippets'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/grndlvl/drupal-snippets

Ⅳ. 文档说明

### Description
Creates snipMate snippets for Drupal to be used with Vim.

Requirements

snipMate for Vim.

Usage

Running the following command will create a directory inside of the current directory called "snippets/drupal" based on the code avaliable by the path passed in for Drupal.
For instance, if you would like devel functions form the devel module in your Drupal snippets then download the devel module and place it in the Drupal modules directory
and then run the generation script and it will create snippets for that module as well.

nce you get that up and running, just put the 'drupal' directory in your ~/.vim/snippets (or wherever you install your Vim scripts to).
Run the following:

php generate.php [path to Drupal]

If you installed this as a pathogen bundle then your done :).
Otherwise, move the "drupal" folder into [Vim scripts directory]/snippets(usually ~/.vim/snippets)

Credits

Original code from Steven Wittens' original TextMate bundle script over here.

添加新评论