vim-velocity


Ⅰ. 插件描述

velocity syntax for vim

Ⅱ. 基本信息

创建日期:  2012-01-31
使用用户:  37
Github星:  14
插件作者:  Hsiaoming Yang

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Velocity for Vim

Velocity bundle for vim.

Feature

  1. full syntax support
  2. great indent support (by shepherdwind)

Installation

Install with Vundle

If you are not using vundle, you really should have a try.
Edit your vimrc:

Bundle "lepture/vim-velocity"

And install it:

:so ~/.vimrc
:BundleInstall

Install with pathogen

If you prefer tpope's pathogen, that's ok. Just clone it:

cd ~/.vim/bundle
git clone https://github.com/lepture/vim-velocity.git

Configuration

No configuration is needed, if you are using vim 7.2+, it will detect if
a html file is a velocity template.

But if you want to ensure it works well, you can edit your vimrc:

au BufNewFile,BufRead *.vm,*.html,*.htm,*.shtml,*.stm set ft=velocity

Bug report

Report a bug on GitHub Issues.

添加新评论