sponsor Vim development Vim logo Vim Book Ad

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

 script karma  Rating 9/3, Downloaded by 791  Comments, bugs, improvements  Vim wiki

created by
David Bürgin
 
script type
utility
 
description
Radical.vim is a plugin that converts between the number representations encountered when programming, that is in addition to decimal, hex, octal, and binary representation.

"gA" shows the four representations of the number under the cursor.
"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.

This plugin depends on the magnum.vim big integer library (vimscript #4877).

See also: https://github.com/glts/vim-radical
 
install details
Unzip the archive in your ~/.vim directory. (On Windows, replace "~/.vim" with "%HOME%\vimfiles".)

If you use a plugin management system use the installation procedure appropriate to your setup. 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
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
radical-1.2.0.zip 1.2.0 2019-11-23 7.3 David Bürgin Support customising coercion output
radical-1.1.0.zip 1.1.0 2019-10-22 7.3 David Bürgin Restore clipboard and registers after coerce
Support customising mappings
radical-1.0.1.zip 1.0.1 2016-06-22 7.3 David Bürgin Initial upload
ip used for rating: 3.94.129.211

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
OSDN.net Logo