Ⅰ. 插件描述
Syntax file for jQuery in ViMⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'scottmcginness/vim-jquery-forever-and-always'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'scottmcginness/vim-jquery-forever-and-always'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'scottmcginness/vim-jquery-forever-and-always'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/scottmcginness/vim-jquery
Ⅳ. 文档说明
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
- 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
Use Vundle to install. Just addBundle 'scottmcginness/vim-jquery' to your .vimrc, then run:BundleInstall within vim.
Credits
Copyright (c) 2011 Bruno Michel <bmichel@menfin.info>, released under the MIT license