sponsor Vim development Vim logo Vim Book Ad

magnum.vim : Pure Vim script big integer library

 script karma  Rating 0/0, Downloaded by 2242  Comments, bugs, improvements  Vim wiki

created by
David Bürgin
script type
Magnum is a big integer library for Vim plugins written entirely in Vim script. Currently it provides just a small set of predicates, arithmetic, and conversion operations. It also includes a simple random number generator.

Complete documentation is included and can be accessed via ":h magnum".

Additional materials (usage examples, test suite, references) are available at the plugin home on GitHub.
install details
Unzip the archive in your ~/.vim directory. (On Windows, replace "~/.vim" with "%HOME%\vimfiles".)

If you use a plugin management system use the installation procedure appropriate to your setup.

For example, with pathogen.vim the installation goes simply:

git clone https://github.com/glts/vim-magnum.git ~/.vim/bundle/magnum

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
magnum-2.1.1.zip 2.1.1 2019-11-13 7.3 David Bürgin Updated contact info (no changes)
magnum-2.1.0.zip 2.1.0 2016-07-10 7.3 David Bürgin Changed magnum#random#NextInt to accept arbitrary range
Added support for +num64 feature
magnum-2.0.0.zip 2.0.0 2016-06-21 7.3 David Bürgin Removed dependency on Maktaba
Changed exception values to start with "magnum:" (breaking change)
magnum-1.1.0.zip 1.1.0 2014-10-03 7.3 David Bürgin Added random number generator
magnum-1.0.2.zip 1.0.2 2014-07-19 7.3 David Bürgin Improved uncaught exception messages
magnum-1.0.1.zip 1.0.1 2014-06-14 7.3 David Bürgin Removed undocumented exception in Integer.Pow
Improved performance of Integer.Pow
magnum-1.0.0.zip 1.0.0 2014-02-28 7.3 David Bürgin Initial upload
ip used for rating:

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.