vi gobbles 8th bit
Gerry Wheeler
wheels at mks.UUCP
Sat Aug 27 07:12:20 AEST 1988
In article <3160 at geac.UUCP>, steve at geac.UUCP (Steve Lane) writes:
> I have been using vi for years, and was glad to see that MKS provided it
> for MS-DOS.
>
> However, I needed to edit files containing 8-bit characters, in order
> to draw fancy boxes etc. When I edited these files with vi, it noted that
> I had 264 non-ascii characters, but chopped them to 7 bits before saving
> the changed file.
If you use the eightbits option, vi will not mash the bytes with the top
bit set. Once you have done that, you can set the national and native
options to choose how you want to display these characters. You
mentioned that you wanted to view the IBM PC line drawing characters, so
I suspect your best bet would be to set native.
Once you find the settings you prefer, you can put the appropriate
command in your ex.rc file so vi will set them each time it starts. It
looks for ex.rc in the current directory, then in your home directory if
you have $HOME set, or in the root directory if not.
--
Gerry Wheeler Phone: (519)884-2251
Mortice Kern Systems Inc. UUCP: uunet!watmath!mks!wheels
35 King St. North BIX: join mks
Waterloo, Ontario N2J 2W9 CompuServe: 73260,1043
More information about the Comp.unix.questions
mailing list