karma.vim


Ⅰ. 插件描述

For given karma print how users possibly voted

Ⅱ. 基本信息

创建日期:  2007-08-29
使用用户:  1
Github星:  2
插件作者:  Andy Wokula

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Usage:
:Karma {score} {votes}

Examples:
:Karma 4727 1463
Karma: 4727/1463
   1. Life Changing: 1088   Helpful: 375   Unfulfilling: 0
   2. Life Changing: 1090   Helpful: 370   Unfulfilling: 3
      ...
  76. Life Changing: 1238   Helpful: 0   Unfulfilling: 225

(the dots are literal output, and btw this is the karma for vimscript #273)

Checking the results (here for 2.):
    10904 + 3701 + 3*(-1) = 4727
    1090 + 370 + 3 = 1463

:Karma -3 16
Karma: -3/16
   1. Life Changing: 1   Helpful: 4   Unfulfilling: 11

Other vimscripts: vimscript #936

2007 Dec 08

添加新评论