Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/weiss/textgenshi.vim

Syntax Highlighting for Genshi Text Templates in Vim
https://github.com/weiss/textgenshi.vim

Last synced: 14 days ago
JSON representation

Syntax Highlighting for Genshi Text Templates in Vim

Awesome Lists containing this project

README

        

Syntax Highlighting for Genshi Text Templates in Vim
----------------------------------------------------

In order to add syntax highlighting for Genshi_ `text templates`_ to Vim_, move
the `textgenshi.vim`_ file into the ``~/.vim/syntax/`` directory. If your text
templates have a ``.genshi`` file extension (and your `XML templates`_ don't),
you could add the following lines to your ``~/.vim/filetype.vim`` in order to
auto-detect them::

augroup filetypedetect
autocmd BufNewFile,BufRead *.genshi setfiletype textgenshi
augroup END

.. References

.. _Vim:
http://www.vim.org/
.. _Genshi:
http://genshi.edgewall.org/
.. _XML templates:
http://genshi.edgewall.org/wiki/Documentation/xml-templates.html
.. _text templates:
http://genshi.edgewall.org/wiki/Documentation/text-templates.html
.. _textgenshi.vim:
https://raw.github.com/weiss/textgenshi.vim/master/syntax/textgenshi.vim