vim-bundle-mako


Ⅰ. 插件描述

A collection of vim scripts for the mako templating engine, in a vim bundle form (usable with pathogen.vim)

Ⅱ. 基本信息

创建日期:  2010-08-19
使用用户:  98
Github星:  27
插件作者:  Erich Heine

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'sophacles/vim-bundle-mako'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'sophacles/vim-bundle-mako'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'sophacles/vim-bundle-mako'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

This project is a colleciton of vim scripts that relate to the Mako templating
engine for python. Most of thse are not at all written by me, just packaged
here from the vim-script site. The purpose is to make them easy to use with
pathogen.vim.

Useful configuration variables:

  • g:mako_detect_lang_from_ext: when set to 1 (the default), the ftdetect
    script will attempt to figure out the "outer" filetype of the file by

stripping the ".mako" extension (eg: index.html.mako will be treated as HTML,
while script.cpp.mako will be treated as C++). Set to 0 to prevent this
detection.

  • g:mako_default_outer_lang: if ftdetect cannot detect the "outer" filetype of
    the file, this sets the default filetype used. If not set, defaults to "html".

About mako: http://www.makotemplates.org/

Externally sourced scripts:

添加新评论