Ⅰ. 插件描述
radical.vim ✊ Convert decimal, hex, octal, binary number representationsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'glts/vim-radical'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'glts/vim-radical'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'glts/vim-radical'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/glts/vim-radical
Ⅳ. 文档说明
radical.vim
Radical.vim is a Vim plugin that converts between the number
representations encountered when programming, that is in addition to
decimal, hex, octal, and binary representation.
This plugin depends on the magnum.vim big integer library.
Usage
The entire functionality of this plugin can be summarised in two items.
gAshows the four representations of the number under the cursor(or selected in Visual mode).crd,crx,cro,crbconvert the number under the cursor todecimal, hex, octal, binary, respectively.
These mappings accept a count to force the base used to interpret the
targeted number.
Requirements
- magnum.vim plugin
- repeat.vim plugin (optional)
This plugin has been tested with Vim 7.3 and above.
Installation
Use your preferred installation method.
Keep in mind that radical.vim depends on magnum.vim, so be sure to
install that as well if your plugin manager doesn’t handle dependencies
for you.
For example, with pathogen.vim the installation goes:
git clone https://github.com/glts/vim-magnum.git ~/.vim/bundle/magnum
git clone https://github.com/glts/vim-radical.git ~/.vim/bundle/radical