From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076337821525.tru64-unix-managers.marc@archive.invalid> From: Francois_ARCASEDDA () paribas ! com (Francois ARCASEDDA) Date: Mon, 19 Aug 1996 09:21:45 +0000 To: tru64-unix-managers Subject: SUMMARY: vi how to insert a special character. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076337821525 Thanks for the answers. Basically the answer is : DON'T use vi ! Anthony D'Atri" aad@nwnet.net wrote Dump vi and use an emacs. Ken Teh wrote I normally use the vim (Vi IMproved) editor. Except for one item which you do not normally use anyway, it is identical to the vi editor, but it has a lot more capabilities, one of which is the ability to edit binary files. ollivier.robert@eurocontrol.fr wrote You could use Emacs in hexl-mode. It enables you to edit any file in hexadecimal format and insert any ASCII code. Lucio Chiappetti wrote The IBM mainframe editor XEDIT had a facility for that. There are one commercial and two public domain clones of XEDIT for Unix. One is "xc" (ftp from watserv1.uwaterloo.ca) and the other one is "the" (by Mark Hessling). I use an old version of xc for historical reasons, but I've been told "the" has better support (there is even a mailing list). You should be able to find details asking to newsgroup comp.editors, or looking in the Editor Compendium (http://www.cahe.wsu.edu/~bsyse/faculty/rnelson/editors.htm). If you get such editors, the idea is that you proceed as follow : - place a character you do not use for anything else in the location where you want your hex string (e.g. use "%") - issue command "set hex on" to enable hex editing - issue a "change/%/x'ed1f'/" command to change an instance of "%" with the given hex code BTW, XEDIT has many nice features and is in my view the best editor I know. Thanks Francois ARCA-SEDDA Banque PARIBAS.