From: Justin W. Flory Date: Wed, 27 Jun 2018 18:39:26 +0000 (-0500) Subject: Update integration docs for Vim syntax highlighting X-Git-Tag: 2.11.0~111^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F869%2Fhead;p=thirdparty%2Fjinja.git Update integration docs for Vim syntax highlighting --- diff --git a/docs/integration.rst b/docs/integration.rst index 3a4988b0..af0e64ff 100644 --- a/docs/integration.rst +++ b/docs/integration.rst @@ -81,21 +81,26 @@ snippet and add it into your `config/environment.py`:: TextMate -------- -There is a `bundle for TextMate`_ that supports syntax highlighting for Jinja1 and Jinja2 for text based -templates as well as HTML. It also contains a few often used snippets. +There is a `bundle for TextMate`_ that supports syntax highlighting for Jinja1 +and Jinja2 for text based templates as well as HTML. It also contains a few +often used snippets. .. _bundle for TextMate: https://github.com/mitsuhiko/jinja2-tmbundle Vim --- -A syntax plugin for `Vim`_ exists in the Vim-scripts directory as well as the -`ext` folder at the root of the Jinja2 project. `The script -`_ supports Jinja1 and -Jinja2. Once installed two file types are available `jinja` and `htmljinja`. -The first one for text based templates, the latter for HTML templates. +A syntax plugin for `Vim`_ is available `from the jinja repository +`_. The script +supports Jinja1 and Jinja2. Once installed, two file types are available +(``jinja`` and ``htmljinja``). The first one is for text-based templates and the +second is for HTML templates. For HTML documents, the plugin attempts to +automatically detect Jinja syntax inside of existing HTML documents. -Copy the files into your `syntax` folder. +If you are using a plugin manager like `Pathogen`_, see the `vim-jinja +`_ repository for installing in the +``bundle/`` directory. .. _Babel: http://babel.pocoo.org/ .. _Vim: http://www.vim.org/ +.. _Pathogen: https://github.com/tpope/vim-pathogen