Ⅰ. 插件描述
Provides a bunch of autocomplete snippets for Vim using snipMate.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'theunraveler/drupal-snippets-for-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'theunraveler/drupal-snippets-for-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'theunraveler/drupal-snippets-for-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/theunraveler/drupal-snippets-for-vim
Ⅳ. 文档说明
I'm beginning to see the light: Vim is awesome.
However, there is nothing for Vim that matches the PHP Drupal bundle for Textmate, what with the autocompletion and snippet goodness. So here will be an ongoing attempt to recreate that in Vim using the snipMate plugin.
Configuration
These snippets require the snipMate plugin for Vim. Once you get that up and running, just put the 'drupal' directory in your ~/.vim/snippets (or wherever you install your Vim scripts to).
For the snippets to work, the filetype needs to specify drupal.
You may want to use the Drupal Plugin for Vim which will do this for you, or, in your .vimrc file, add the line:
:set filetype=drupal.php