sponsor Vim development Vim logo Vim Book Ad

textgenshi.vim : Syntax Highlighting for Genshi Text Templates

 script karma  Rating 4/1, Downloaded by 811  Comments, bugs, improvements  Vim wiki

created by
Holger Weiß
 
script type
syntax
 
description
This file adds syntax highlighting for Genshi plain text templates (see vimscript #1869 for XML template support).

See: http://genshi.edgewall.org/wiki/Documentation/text-templates.html
 
install details
Copy the genshi.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
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
textgenshi.vim 1.1 2011-08-13 6.0 Holger Weiß We now use the name "textgenshi" instead of "genshi" in order to avoid conflicts with syntax definitions for Genshi XML templates.  Apart from that, some minor bugs have been fixed.
genshi.vim 1.0 2011-07-27 6.0 Holger Weiß Initial upload
ip used for rating: 13.59.136.170

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github