Ⅰ. 插件描述
Convert ISBNs to EAN-13sⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/isbn-10-to-ean-13-converter'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/isbn-10-to-ean-13-converter'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/isbn-10-to-ean-13-converter'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/ISBN-10-to-EAN-13-converter
Ⅳ. 文档说明
Allows conversions between ISBN-10 >> 978 prefix EAN-13s, and 978 prefix EAN-13s >> ISBN-10
There are three methods of converting ISBNs and EANs:
:ReplaceLineIsbnEan
If the entirety of the current line is a valid ISBN-10, replaces it with the converted 978 prefix
EAN-13
:ReplaceLineEanIsbn
If the entirety of the current line is a valid EAN-13 with a 978 prefix, replaces it with the
converted ISBN-10
:ReplaceSelectedIsbnEan
If the selected text is a valid ISBN-10, replaces that text with the converted 978 prefix EAN-13
:ReplaceSelectedEanIsbn
If the selected text is a valid EAN-13 with a 978 prefix, replaces it with the converted ISBN-10
:ReplaceAllIsbnEan
Searches for any 10 digit number, of 9 digit number followed by x or X. For each match, if it is
a valid ISBN-10, then it replaces that match with the converted 978 prefix EAN-13
:ReplaceAllEanIsbn
Searches for any 13 digit number. For each match, if it is a valid 978 prefix EAN-13, then it
replaces that match with the converted ISBN-10.