Ⅰ. 插件描述
List of JavaScript ES6 snippets and syntax highlighting for vim.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'isruslan/vim-es6'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'isruslan/vim-es6'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'isruslan/vim-es6'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/isruslan/vim-es6
Ⅳ. 文档说明
Write JavaScript ES6 easily with vim.
Install
To install using Vundle:
" add this line to your .vimrc file
Plugin 'isRuslan/vim-es6'
To install using pathogen.vim:
cd ~/.vim/bundle
git clone https://github.com/isRuslan/vim-es6.git
To manual install download zip file:
cd ~/.vim
unzip vim-es6.zip
To checkout the source from repository:
cd ~/.vim/bundle
git clone https://github.com/isRuslan/vim-es6.git
Snippets list
Trigger | Result |
---|---|
gfn→ | function* name (arg) { yield arg; } |
=>→ | (arg) => { ... }, |
class→ | class name { constructor () { ...} } |
forof→ | for (let value of arr) { ... } |
im→ | import lib from 'Library' |
ex→ | export default foo |