vim-jinja2-syntax


Ⅰ. 插件描述

An up-to-date jinja2 syntax file.

Ⅱ. 基本信息

创建日期:  2011-12-17
使用用户:  882
Github星:  232
插件作者:  Glen Chiacchieri

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

This is the latest version of the Jinja2 syntax file for vim with the ability to detect either HTML or Jinja.

There are two reasons I made this repository:

  • The version of this vim addon is out-of-date on vimscripts.
  • I wanted to manage this syntax file with vim-addons-manager or whatever other vim plugins managers there are.

The current version is the 2020-01-06 version from the official jinja repository.
If you notice there is a newer version available please send a pull request.

If you have bugs or pull requests, please submit them straight to the source. If the plugin is overzealous in detecting the Jinja syntax, send me the template it shouldn't have matched.

添加新评论