nodeunit.vim


Ⅰ. 插件描述

Vim compiler for nodeunit.js

Ⅱ. 基本信息

创建日期:  2011-10-12
使用用户:  6
Github星:  11
插件作者:  Alisue Lambda

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

**
nodeunit.vim


A simple compiler for executing nodeunit_ on VIM. Useful to use with vim-makegreen_

See http://blog.staz.be/?post/2010/09/04/Python-unit-test-and-vim for how to use this compiler with vim-makegreen_. It is not exactly its tutorial but really compatible.

.. _nodeunit: https://github.com/caolan/nodeunit
.. _vim-makegreen: https://github.com/reinh/vim-makegreen

how to install

use vundle_ or pathogen_ is recommended or simply extract to your vim directory

.. _vundle: https://github.com/gmarik/vundle
.. _pathogen: http://www.vim.org/scripts/script.php?script_id=2332

and write the following code to your ftplugin/javascript.vim or ftplugin/coffee.vim::

set compiler=nodeunit

添加新评论