Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 syntax
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.md
README.md

Vim syntax for jQuery

It currently detects syntax and keywords for jQuery 1.6.

About

jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript. See http://jquery.com/ for more details.

The syntax file for Vim add some colorations for jQuery keywords (empty clone hasClass hide show animate ...) and for CSS selectors (:empty :hidden :selected :first ...).

Install

Copy the syntax/jquery.vim file to $HOME/.vim/syntax/ and add the following line to your vimrc:

au BufRead,BufNewFile jquery.*.js set ft=javascript syntax=jquery

Credits

Copyright (c) 2011 Bruno Michel bmichel@menfin.info, released under the MIT license

Something went wrong with that request. Please try again.