vim-es6


Ⅰ. 插件描述

List of JavaScript ES6 snippets and syntax highlighting for vim.

Ⅱ. 基本信息

创建日期:  2015-02-06
使用用户:  812
Github星:  462
插件作者:  Ruslan Ismagilov

Ⅲ. 安装方法

使用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

You need SnipMate or UltiSnips installed.

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

TriggerResult
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

添加新评论