glts / vim-radical Goto Github PK
View Code? Open in Web Editor NEWradical.vim ✊ Convert decimal, hex, octal, binary number representations
Home Page: http://www.vim.org/scripts/script.php?script_id=5409
radical.vim ✊ Convert decimal, hex, octal, binary number representations
Home Page: http://www.vim.org/scripts/script.php?script_id=5409
Could you make an option to align hex in 1 / 2 / 4 / 8 bytes long with 0-fill
(e.g. 4095
(dec) -> 0x0FFF
(hex), instead of 0xfff
)?
Align in the nearest 2^x bytes long (i.e. 2 * 2^x hex chars), or such.
In some languages (like python and javascript) you can use _ for readability as a number separator. eg: 1_000 for 1,000. Is there an easy way to support the separator in this plugin? Thanks for a great plugin, regardless.
Best,
Kendrick
It was cool if this could do characters as well
Could we provide an operator for these transformation? I thinking about the situation where we want to transform all numbers within a text object. We could do things like "crbif":
crb: covert all numbers to binary representation
if: within function
and much more. Any idea on how to approach this?
Thank you for the advice and guidance
Currently the coerce functionality is not working as expected. I have for example the following text:
'one-two-three'
If we would have a coerce operator we could do something like: crsiW:
cr: coerce
s: to snake case
iW: in Word
if I do, crs, it just fails detecting that I want to be able to do this within the word. I think this functionality could be very powerful, and the plugin seems to be very close. I wonder what would be the best approach to implement this. Thank you in advance for any advice and guidance
crx
and friends put the converted number in the unnamed (default) register.
Meaning that the code that's supposed to restore the register is broken.
wonderful plugin
how do I convert 'hdeadbeef to it's dec/oct equivalent (or 'b1001) for that matter
Vim learnt a new g CTRL-A
built-in in version 7.4.754.
I have installed radical.
I have installed magnum.
I have installed repeat.
gA works for me with no issue. Since in the documentation "repeat.vim" is mentioned, I tried doing dot (.) to repeat the command "gA" but it didn't work for me.
Is this a feature? Should we expect it to work?
I am using NVIM v0.8.2.
I think I can add this functionality my self, but I'll add the issue so it gets documented. From what I see there is no way to override the current mappings, right?
Could you make an option to use uppercase letters for hex (e.g. 0xFF
),
instead of lower case (e.g. 0xff
) for current?
Time to revisit this plugin, resolve open issues and release version 1.0.0.
8crx
converts the octal number under the cursor to hex. When repeating with .
the number is not treated as octal.
In fact, after running .
the count 8
is shown in the status line, waiting for a command to use the count with.
Compare with built-in CTRL-A
:
3<C-A>
increments by three.
increments by three5.
increments by five.
increments by fiveA declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.