glts / vim-magnum

magnum.vim – Pure Vim script big integer library

Home Page:http://www.vim.org/scripts/script.php?script_id=4877

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

magnum.vim

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.

Usage

Complete documentation is available at :h magnum.

There are a couple of quick usage examples in the wiki, so you can click through now to get an impression of what working with magnum.vim looks like.

Requirements

  • Vim 7.3 or later (Vim 7.2 should also work just fine)

Installation

Use your preferred installation method.

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

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

Development

There is a test suite written for vspec. In order to run the tests both vspec and magnum.vim must be on the runtime path. For example, I use something like the following to run the API tests:

path/to/vspec path/to/{vspec,magnum} t/api.vim

About

magnum.vim – Pure Vim script big integer library

http://www.vim.org/scripts/script.php?script_id=4877


Languages

Language:Vim Script 100.0%