mojo.vim


Ⅰ. 插件描述

Vim syntax for mojo epl templates in Mojo projects

Ⅱ. 基本信息

创建日期:  2010-01-08
使用用户:  41
Github星:  50
插件作者:  Yaroslav Korshak

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Mojo templates Syntax file
Language: Mojo templates
By yko <ykorshak@gmail.com>
License: Artistic 2.0

DESCRIPTION

Syntax file for highlighting embedded Perl code in Mojo templates.
Designed to highlight syntax of both .html.ep and .html.epl formats.
Also you can allow syntax highliting for DATA section of Perl files.

INSTALLATION

make install

CONFIGURATION

Configurations variables:

:let mojo_highlight_data = 1

Highlight embedded Perl code in DATA sections of your Perl files.

:let mojo_disable_html = 1

Don't highlight html inside DATA templates - Perl code only.

:let mojo_no_helpers = 1

Don't highlight default and tag helpers.

OPTIONAL DEPENDENCIES

Once snipMate.vim installed autocomplete for helpers and template blocks became available.
See http://www.vim.org/scripts/script.php?script_id=2540 and snippets/epl.snippets for details.

Text::VimColor is required to run optional development purposes tests:

make test

CREDITS

Viacheslav Tykhanovskyi, the greatest - co-founding and optimization

添加新评论