Ⅰ. 插件描述
Enhanced javascript syntax file for VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'rylnd/vim-javascript-syntax-holy-ground'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'rylnd/vim-javascript-syntax-holy-ground'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'rylnd/vim-javascript-syntax-holy-ground'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/rylnd/vim-javascript-syntax
Ⅳ. 文档说明
#Enhanced Javascript Syntax for Vim
Credits
- Zhao Yi, Claudio Fleiner, Scott Shattuck (This file is based on their hard work)
- gumnos (From the #vim IRC Channel in Freenode) (Who helped me figured out the crazy Vim Regexes)
Description
This file is a fork of this file and the stock one
This version of this file features the following text highlights:
- Parenthesis, curly and regular brackets.
- The semicolon or comma at the end of line.
- Browser, DOM and "Ajax" keywords like objects, methods, properties and others.
- Operation, comparison and logical symbols (
=,==,===,!=,etc.).
To enable code folding add the following to your .vimrc.
au FileType javascript call JavaScriptFold()
TODO
You can help me improve it too.
- The separate highlight of the arguments
- I know this is a syntax file, but having an autocompletion file.
- Add keywords for the popular third-party libraries like jQuery, YUI, Prototype, etc.
Screenshots
This is the stock Javascript syntax file
This is with the Enhanced Syntax file
License
The same as Vim