Ⅰ. 插件描述
A simple compiler for using nosetests on VIMⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'lambdalisue/nose-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'lambdalisue/nose-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'lambdalisue/nose-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/lambdalisue/nose.vim
Ⅳ. 文档说明
**
nose.vim
:VERSION: 0.1rc2
A simple compiler for executing nosetests on VIM. Originally written by Olivier Le Thanh Duong at and modified by lambdalisue. Useful to use with vim-makegreen_
See http://blog.staz.be/?post/2010/09/04/Python-unit-test-and-vim for find how to use it with vim-makegreen_
nose-machineout
modified version use nose-machineout2_ for convinience so you have to install it as well as nose_::
sudo pip install nose
sudo pip install nose_machineout2
.. _nose-machineout2: https://github.com/lambdalisue/nose-machineout2
.. _nose: http://readthedocs.org/docs/nose/en/latest/
.. _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/python.vim::
compiler nose