vim-blade


Ⅰ. 插件描述

Vim syntax highlighting for Blade templates.

Ⅱ. 基本信息

创建日期:  2013-01-16
使用用户:  301
Github星:  176
插件作者:  Jason Walton

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'jwalton512/vim-blade-shouldve-said-no'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'jwalton512/vim-blade-shouldve-said-no'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'jwalton512/vim-blade-shouldve-said-no'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-blade #

Vim syntax highlighting for Blade templates (Laravel 4+).

This plugin contributes to vim-polyglot language pack.

Installation

Using vim-plug
vim-plug.

Plug 'jwalton512/vim-blade'

Using pathogen
pathogen.vim.

cd ~/.vim/bundle
git clone git://github.com/jwalton512/vim-blade.git

Configuration

Because Blade allows you to define your own directives, you can let the plugin
know about them through some variables. Examples:

" Define some single Blade directives. This variable is used for highlighting only.
let g:blade_custom_directives = ['datetime', 'javascript']

" Define pairs of Blade directives. This variable is used for highlighting and indentation.
let g:blade_custom_directives_pairs = {
      \   'markdown': 'endmarkdown',
      \   'cache': 'endcache',
      \ }

Contributing

Pull requests are greatly appreciated. Please be certain to include a test where applicable (test.blade.php). You may test locally by using vim -u vimrc.

Want to buy me a coffee?

Flattr this git repo

添加新评论