IncRoman.vim


Ⅰ. 插件描述

Cope with Roman numbers

Ⅱ. 基本信息

创建日期:  2006-07-17
使用用户:  1
Github星:  1
插件作者:  Andy Wokula

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Increase or decrease a Roman number found under the cursor, with [count].
If a decimal number is found it is converted into its corresponding Roman
number, ignoring the [count].  Any other word is converted to the Roman
number that [count] corresponds to.

Range: I .. MMMCMXCIX (1..3999)
Higher numbers result in more than three "M"s.

There are interface mappings: <plug>IncRoman and <plug>DecRoman .
They can be mapped globally or local to buffer, the latter is the default.
From the script:
    nmap <unique><buffer> <C-A> <plug>IncRoman
    nmap <unique><buffer> <C-X> <plug>DecRoman

Therefore if you want to use the script as a plugin, you should define
global keys in your .vimrc:
    nmap <C-A> <plug>IncRoman
    nmap <C-X> <plug>DecRoman

Other scripts with support for Roman numbers:
vimscript #197 genutils : General utility functions
    genutils#Roman2Decimal(str)
vimscript #431 VimFootnotes : Insert various types of footnotes
vimscript #670 VisIncr : Produce increasing/decreasing columns of numbers, dates, or daynames
vimscript #2120 speeddating.vim : Use CTRL-A/X to increment dates, times, and more

Last Change: 2007 Jan 11

添加新评论