GitXplorerGitXplorer
n

jquery.vim

public
18 stars
5 forks
0 issues

Commits

List of commits on branch master.
Unverified
771a8672ddad68b4fd074d53b1d6eca00637a325

Bump version 0.5.2

nnono committed 14 years ago
Unverified
cabd6b18f1e18e9de068e72ef4bdfebe36360cf4

~ has a special meaning for regexp in Vim

nnono committed 14 years ago
Unverified
efcfbb7f93520142168efcb47302924a899e14d9

Contains is a reserved keyword for ViM

nnono committed 14 years ago
Unverified
e6b8d78ce6766f4ed7dcc05306fd972ae1d5145a

Upgrade to match jQuery 1.6 keywords

nnono committed 14 years ago
Unverified
ad90788a4e24a934151c00788d3e8c6dacc9b0bc

Import from git://github.com/nono/merb.vim.git

nnono committed 14 years ago

README

The README file for this repository.

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