Ⅰ. 插件描述
ES.Next syntax for VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'othree/es-next-syntax-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'othree/es-next-syntax-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'othree/es-next-syntax-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/othree/es.next.syntax.vim
Ⅳ. 文档说明
# es.next.syntax.vim
This syntax file is for ECMAScript future syntax. Need to work with [yajs.vim][].
Supports:
- Decorator https://github.com/wycats/javascript-decorators
- Class Static Fields(Property Initializer) https://github.com/tc39/proposal-class-public-fields
- Bind Operator https://github.com/tc39/proposal-bind-operator
import()
https://github.com/tc39/proposal-dynamic-import- Simple Type Hint
- Pipeline operator
- Numeric separator
- Nullish Coalescing operator