Skip to content

radical.vim ✊ Convert decimal, hex, octal, binary number representations

Notifications You must be signed in to change notification settings

milesrout/vim-radical

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

  • gA shows the four representations of the number under the cursor (or selected in Visual mode).
  • crd, crx, cro, crb convert the number under the cursor to decimal, hex, octal, binary, respectively.

These mappings accept a count to force the base used to interpret the targeted number.

Requirements

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

About

radical.vim ✊ Convert decimal, hex, octal, binary number representations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%