🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.os.linux.suse
Article #228

Re: Hexeditor

#228
From: Jochen Striepe
Date: Thu, 16 Mar 2000 00:00
63 lines
2798 bytes
	Hi,

On 16 Mar 2000 00:12:19 GMT, Josef 'Jupp' Schugt <jupp@gmx.de> wrote:
> 
> > Fuer den nackten vim muss ich Dir vollkommen recht geben.
> > Aber hast Du schonmal im vim `:help hex` eingegeben? 
> 
> "Sorry, no help for hex"
> 
> Ich habe vim (5.4) vollst�ndig installiert - dachte ich jedenfalls
> bis heute. Oder ist das Feature erst nach 5.4 dazu gekommen?

Keine Ahnung. Ich verwende hier vim 5.6.

"Feature" ist vielleicht etwas uebertrieben...
`:help hex` liefert bei mir:

------------SNIPP--------------
Hex editing                                     *hex-editing*
*using-xxd*

When you need to edit binary data, and prefer to do that on a
hexadecimal listing, you can use the xxd program.  Use this to convert
from binary to hexadecimal:
>       :%!xxd
and use this to convert it back:
>       :%!xxd -r

If one has a particular extension that one uses for binary files (such
as exe, bin, etc), you may find it helpful to automate the process with 
the following bit of autocmds for your <.vimrc>.  Change that "*.bin" 
to whatever comma-separated list of extension(s) you find yourself 
wanting to edit:

>       " vim -b : edit binary using xxd-format!
>       augroup Binary
>         au!
>         au BufReadPre  *.bin let &bin=1
>         au BufReadPost *.bin if &bin | %!xxd
>         au BufReadPost *.bin set ft=xxd | endif
>         au BufWritePre *.bin if &bin | %!xxd -r
>         au BufWritePre *.bin endif
>         au BufWritePost *.bin if &bin | %!xxd
>         au BufWritePost *.bin set nomod | endif
>       augroup END
------------SNIPP--------------
 
> Dann h�tte ich einen Anlass, eine neuere Version von vim zu
> installieren.

Nur zu :-)
http://www.vim.org/


Bis bald,

Jochen.

-- 
FAQ zur Newsgroup at.linux: 
http://alfie.ist.org/LinuxFAQ/
http://www.meuer.de/LinuxFAQ/ 
http://www.camelot.at/LinuxFAQ/
Technical Details
Message-ID: <slrn8d0chg.dj.j.striepe@tolot.meuer.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38C91DA2.DE521863@gmx.de> <8ajm3g$gut$1@news.tuwien.ac.at> <slrn8cqu4j.d0.j.striepe@tolot.meuer.de> <8ap8t3$36eg$1@f1node01.rhrz.uni-bonn.de>

Show Full Headers
Complete Article Headers
X-Google-Language: GERMAN,ASCII
X-Google-Thread: 1041dd,ea8405fa6d95b46b
X-Google-Attributes: gid1041dd,public
X-Google-Thread: f4b73,ea8405fa6d95b46b
X-Google-Attributes: gidf4b73,public
X-Google-Thread: 1101c9,ea8405fa6d95b46b
X-Google-Attributes: gid1101c9,public
From: j.striepe@tu-bs.de (Jochen Striepe)
Subject: Re: Hexeditor
Date: 2000/03/16
Message-ID: <slrn8d0chg.dj.j.striepe@tolot.meuer.de>
X-Deja-AN: 598059127
Distribution: world
Content-Transfer-Encoding: 8bit
References: <38C91DA2.DE521863@gmx.de> <8ajm3g$gut$1@news.tuwien.ac.at> <slrn8cqu4j.d0.j.striepe@tolot.meuer.de> <8ap8t3$36eg$1@f1node01.rhrz.uni-bonn.de>
X-Signature-Color: blue
Content-Type: text/plain; charset=iso-8859-1
X-newsgroup: at.linux
Organization: FAQ-Team for at.linux
User-Agent: slrn/0.9.6.2 (Linux)
Mime-Version: 1.0
Newsgroups: alt.os.linux.suse,at.linux,ch.comp.os.linux