Ⅰ. 插件描述
Syntax Highlighting for Genshi Text Templates in VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'weiss/textgenshi-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'weiss/textgenshi-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'weiss/textgenshi-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/weiss/textgenshi.vim
Ⅳ. 文档说明
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 textgenshiaugroup 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