vim-es6


Ⅰ. 插件描述

List of JavaScript ES6 snippets and syntax highlighting for vim.

Ⅱ. 基本信息

创建日期:  2015-08-13
使用用户:  7
Github星:  5
插件作者:  Ruslan Ismagilov

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/vim-es6-the-thing-itself'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/vim-es6-the-thing-itself'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/vim-es6-the-thing-itself'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/vim-es6

Ⅳ. 文档说明

vim es6

Write JavaScript ES6 easily with vim.

Screenshot: https://raw.githubusercontent.com/isRuslan/vim-es6/master/sample.gif

Install:

You need SnipMate installed: https://github.com/garbas/vim-snipmate.

    To install using Vundle https://github.com/gmarik/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 https://github.com/isRuslan/vim-es6/releases:

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:

| gfn→     | function* name (arg) { yield arg; } |
| =>→      | (arg) => { ... },                               |
| class→  | class name { constructor () { ...} } |
| forof→   | for (let value of arr) { ... }              |
| im→      | import lib from 'Library'                 |

添加新评论