Jinja


Ⅰ. 插件描述

Repository for Jinja support in vim.

Ⅱ. 基本信息

创建日期:  2007-04-08
使用用户:  441
Github星:  84
插件作者:  Armin Ronacher

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Jinja for Vim

Jinja for Vim. This is the updated version unlike the
one on vimscripts.

Features

  • Syntax highlighting
  • Automatic detection of Jinja HTML templates that plays well
    with Django and other HTML files.
  • Indent support

Installation

If you don't have a preferred installation method, I recommend installing
pathogen.vim, and then simply copy and paste:

cd ~/.vim/bundle
git clone git://github.com/mitsuhiko/vim-jinja.git

Configuration

g:htmljinja_disable_detection (Default: 0)

If set the plugin will not try to autodetect HTML files that
contain Jinja code.

g:htmljinja_disable_html_upgrade (Default: 0)

If set the plugin will not try to check on each write of an HTML
file it it should upgrade to htmljinja

添加新评论