drupal-snippets


Ⅰ. 插件描述

Vim snippets for Drupal 7

Ⅱ. 基本信息

创建日期:  2010-10-24
使用用户:  4
Github星:  14
插件作者:  István Palócz

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

/**

  • Vim snippets for Drupal 7
    */

REQUIRED

pathogen https://github.com/tpope/vim-pathogen
snipMate fork made by garbas https://github.com/garbas/vim-snipmate

INSTALL

clone repo in to the ~/.vim/bundle directory

 cd ~/.vim/bundle
 git clone git://github.com/tanarurkerem/drupal-snippets.git

USAGE

  • Type hook_HOOKNAME<tab> for annotated snippets, and h_HOOKNAME<tab> for the non-annotated versions.
  • Most snippets include multiple <tab> placemarks.

INFO

  • Included: All 330+ Drupal 7 hooks
  • Missing: Other functions

添加新评论