Vim Tips Wiki


1,624pages on
this wiki
Add New Page

Use this page to discuss script 1583 tobase: convert from base(2,8,10,16) to base(2-32) or character to html entity

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on
  • This page may be out of date: check the script's page above, and its release notes.


A very useful plugin. Thank you for making it available. This was just the thing I needed to produce lots of hex from a rotating and shifting pattern of binary.

These are some things I had to work around and cope with (provided as feedback for a very useful plugin I will be using more).

1) I did find that 32 binary digits ":Tobase 16 y11000100001000010000100001000010" doesn't provide an answer.

Whereas these 32 bits ":Tobase 16 y01000100001000010000100001000010" does OK.

Presumably the issue here is the 32nd (msb) bit being set, and interpreted as a sign.

2) Workaround was split it up e.g ":Tobase 16 y1101100111000110 y0000000110011100" then combine for 32 bits.

But then we have "D9C6 19C". As leading Zero is not generated (i.e. 019C), cannot automatically combine these to make a 32 bit number.

That's when I had to go manual. Typically I have to work in 32bit rather than 8bit. --February 28, 2012

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.