magnum.vim


Ⅰ. 插件描述

magnum.vim – Pure Vim script big integer library

Ⅱ. 基本信息

创建日期:  2014-02-17
使用用户:  23
Github星:  9
插件作者:  glts

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

magnum.vim

Magnum is a big integer library for Vim plugins written entirely in Vim

  1. 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

添加新评论