vim-quick-radon


Ⅰ. 插件描述

vim-quick-radon is a Vim plugin that applies randon to your current file.

Ⅱ. 基本信息

创建日期:  2015-03-09
使用用户:  2
Github星:  4
插件作者:  tell k

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/tell-k/vim-quick-radon

Ⅳ. 文档说明

========================

vim-quick-radon

vim-quick-radon is a Vim plugin that applies radon to your current file.
Radon is a Python tool that computes various metrics from the source code.

Required

  • radon <https://pypi.python.org/pypi/radon/>_

Installation

Simply put the contents of this repository in your ~/.vim/bundle directory.

Usage

Call function::

:QuickRadon

Result example

.. image:: https://dl.dropboxusercontent.com/spa/ghyn87yb4ejn5yy/r-p2wzdx.png

You can check the results of the three commands.

  • [ Cyclomatic Complexity ] ... radon cc
  • [ Maintainability Index ] ... radon mi
  • [ Raw Metrics ] ... radon raw

Customization

TODO

Alternatives

  • vim-radon <https://github.com/rubik/vim-radon>_. Created by radon original author.

License

MIT License

添加新评论