sponsor Vim development Vim logo Vim Book Ad

karma.vim : For given karma print how users possibly voted

 script karma  Rating 5/5, Downloaded by 705    Comments, bugs, improvements  Vim wiki

created by
Andy Wokula
 
script type
utility
 
description
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.):
    1090*4 + 370*1 + 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
 
install details
copy script to ~/.vim/plugin
or  :source  it when needed

Hint: you can also make the script "autoloaded" (Vim 5.7 and above):
- copy script to ~/.vim/
- put the following line into your .vimrc
    com -nargs=* Karma so ~/.vim/karma.vim| Karma <args>
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
karma.vim 4 2012-01-28 5.7 Andy Wokula NF: now also prints an average voting
karma.vim 3 2007-09-04 5.7 Andy Wokula now compatible to Vim 5.7
karma.vim 2 2007-08-29 7.0 Andy Wokula rating -1/1 is a bug report, lol.  but who knows that (-1 % 2) is -1, and not 1.
karma.vim 1 2007-08-29 7.0 Andy Wokula Initial upload
ip used for rating: 54.196.159.11

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo