Ⅰ. 插件描述
VIM Syntax Highlighting for Jasmine SpecsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'glanotte/vim-jasmine-everything-has-changed'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'glanotte/vim-jasmine-everything-has-changed'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'glanotte/vim-jasmine-everything-has-changed'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/glanotte/vim-jasmine
Ⅳ. 文档说明
# VIM - Jasmine
This is a syntax highlighting plugin for the Jasmine JavaScript testing framework. I extracted most of this from thomd's VIM-Jasmine plugin which is wonderful, but overkill for what I was looking for. I made a few modifications to suit my preferences.
This plugin contributes to vim-polyglot language pack.
Installation
With Vundle
Add:
Bundle 'glanotte/vim-jasmine'To your .vimrc and run BundleInstall from within vim or vim +BundleInstall +qall from the command line
With Pathogen
cd ~/.vim/bundle
git clone https://github.com/glanotte/vim-jasmine.gitUsage
By default this syntax is used with all *_spec.js and *Spec.js files. If you don't follow this norm use something like:
autocmd BufReadPost,BufNewFile *_foo.js set filetype=jasmine.javascript syntax=jasmineIn your ~/.vimrc
Dependencies
This assumes that you are using some other javascript plugin for syntax highlighting and it attaches itself onto the JavaScriptAll cluster.