rr- / vim-hexdec

Convert hexadecimal numbers to decimal and vice versa.
MIT License
14 stars 5 forks source link

Cannot convert a line of decimal numbers to hexadecimal #7

Open Luni-4 opened 3 years ago

Luni-4 commented 3 years ago

I tried to launch :Dec2Hex in normal mode on this line of decimal numbers:

0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8

but the command converted only the first number

0x0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8

It happens on more lines also

rr- commented 3 years ago

I'd appreciate help with this as well as #5

Luni-4 commented 3 years ago

So would a possible approach be converting a single word or digit under the cursor in normal mode, while an entire line in visual mode?

rr- commented 3 years ago

It's not that simple. http://vimdoc.sourceforge.net/htmldoc/visual.html#blockwise-operators