Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Vastly improved vim's javascript indentation.

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time


JavaScript bundle for vim, this bundle provides syntax and indent plugins.

Indentation of javascript in vim is terrible, and this is the very end of it.


  1. very correct indentation for javascript
  2. support javascript indentation in html (provided by lepture)


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

Bundle "pangloss/vim-javascript"

And install it:

:so ~/.vimrc

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

cd ~/.vim/bundle
git clone


html indentation provided by Andy Wokula is faster. But you need to make some configuration.

Suggested configuration:

let g:html_indent_inctags = "html,body,head,tbody"
let g:html_indent_script1 = "inc"
let g:html_indent_style1 = "inc"

Head over to for more information.

Bug report

Report a bug on GitHub Issues.

Something went wrong with that request. Please try again.