vim-laravel4-snippets


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2013-05-14
使用用户:  13
Github星:  11
插件作者:  Mark Wu

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

vim-laravel4-snippets

This is the snippets file for Laravel 4. You can use

:set ft=php.laravel

to enable it in current buffer, or just add the following line to .vimrc

autocmd FileType php set ft=php.laravel

to enable it for every php files.

Or, You also can set the filetype based on directory, like

autocmd BufNewFile,BufRead ~/proj/src/php/laravel/*.php setlocal filetype=php.laravel

BTW, you will need SnipMate or UltiSnips for using this snippets.

Most important is, this snippets based on laravel 4 for sublime text from @bliker

Mark

添加新评论