Vim script
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 4 commits ahead, 1 commit behind lepture:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ftdetect
indent
snippets
syntax
.gitignore
README.md

README.md

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 "shepherdwind/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.