Tim Chase wrote:
I'm editing binary files with Vim using "set display=uhex" and
I was wondering if there's a way to insert characters given
their scancode. Something like what I used to do in DOS by
holding Alt then typing the number of the character to enter?

Sounds like you're looking for what's described at

    :help i_CTRL-V_digit

where you can, in insert-mode, type control+V followed by
-a decimal number
-an "x" followed by a hex number
-a "u" followed by a 4-hexchar unicode sequence
-a "U" followed by an 8-hexchar unicode sequence

HTH,

-tim


Careful, Tim: UTF-8 is unsuited to binary editing, because you can't enter a byte >127 by itself in UTF-8.


Best regards,
Tony.

Reply via email to