Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Vastly improved Javascript indentation and syntax support in Vim.
VimL
Branch: experimental-i…
Pull request Compare This branch is even with pangloss:experimental-indent.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
extras
ftdetect
indent
syntax
tmp
README.md

README.md

vim-javascript

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

Installation

Add to vimrc:

Bundle "pangloss/vim-javascript"

And install it:

:so ~/.vimrc
:BundleInstall

Configuration

The following variables control certain syntax highlighting features. You can add them to your .vimrc to enable/disable their features.

javascript_enable_domhtmlcss

Enables HTML/CSS syntax highlighting in your JavaScript file.

Default Value: 0

b:javascript_fold

Enables JavaScript code folding.

Default Value: 1

g:javascript_conceal

Enables concealing characters. For example, function is replaced with ƒ

Default Value: 0

javascript_ignore_javaScriptdoc

Disables JSDoc syntax highlighting

Default Value: 0

Contributing

If you'd like to be added as a contributor the price of admission is 1 pull request. Please follow the general code style guides (read the code) and in your pull request explain the reason for the proposed change and how it is valuable.

Bug report

Report a bug on GitHub Issues.

Something went wrong with that request. Please try again.