Re: Inserting hex characters

2006-07-26 Thread Trent Gamblin
On Wed, 2006-07-26 at 21:53 +0300, Yakov Lerner wrote: > If you add '-p' option to 'xxd' (see man xxd), like this: > au BufReadPost *.bin if &bin | %!xxd -p > then you different hex format (without offsets) where > you can easily add and remove bytes. The > downside of 'xxd -p' format is,

Re: Inserting hex characters

2006-07-26 Thread Yakov Lerner
On 7/26/06, Trent Gamblin <[EMAIL PROTECTED]> wrote: On Wed, 2006-07-26 at 09:04 -0500, Tim Chase wrote: > For doing binary editing in vim (a rare occurance, when I'm not > just using a proper hex-editor), I tend to use the xxd that comes > with the windows version (and is usually available on mo

Re: Inserting hex characters

2006-07-26 Thread Trent Gamblin
On Wed, 2006-07-26 at 09:04 -0500, Tim Chase wrote: > For doing binary editing in vim (a rare occurance, when I'm not > just using a proper hex-editor), I tend to use the xxd that comes > with the windows version (and is usually available on most Linux > systems I've used) for transforming into an

Re: Inserting hex characters

2006-07-26 Thread A.J.Mechelynck
Tim Chase wrote: Careful, Tim: UTF-8 is unsuited to binary editing, because you can't enter a byte >127 by itself in UTF-8. True enough. I tend not to use UTF-8, so I defer to your far greater experience/knowledge on the matter. For doing binary editing in vim (a rare occurance, when I'm not

Re: Inserting hex characters

2006-07-26 Thread Tim Chase
Careful, Tim: UTF-8 is unsuited to binary editing, because you can't enter a byte >127 by itself in UTF-8. True enough. I tend not to use UTF-8, so I defer to your far greater experience/knowledge on the matter. For doing binary editing in vim (a rare occurance, when I'm not just using a prope

Re: Inserting hex characters

2006-07-26 Thread Trent Gamblin
On Wed, 2006-07-26 at 15:24 +0200, A.J.Mechelynck wrote: > That is documented under ":help i_CTRL-V_digit", which we both > mentioned. Nulls are represented by linefeeds internally. To enter a > linefeed, break the line. Sorry, should have read that first. Thanks again!

Re: Inserting hex characters

2006-07-26 Thread A.J.Mechelynck
Trent Gamblin wrote: Thank you both for the reply. But when I type ^V010 or ^Vx0a it enters <00> instead of <0a> (LF). Does anyone know why? That is documented under ":help i_CTRL-V_digit", which we both mentioned. Nulls are represented by linefeeds internally. To enter a linefeed, break t

Re: Inserting hex characters

2006-07-26 Thread Trent Gamblin
Thank you both for the reply. But when I type ^V010 or ^Vx0a it enters <00> instead of <0a> (LF). Does anyone know why?

Re: Inserting hex characters

2006-07-25 Thread A.J.Mechelynck
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 wha

Re: Inserting hex characters

2006-07-25 Thread Tim Chase
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

Re: Inserting hex characters

2006-07-25 Thread A.J.Mechelynck
Trent Gamblin 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? In Vim it's not the keyboar