Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!hplabs!hpda!hpcuhb!hpcupt1!hpirs!wk From: wk@hpirs.HP.COM (Wayne Krone) Newsgroups: comp.bugs.4bsd Subject: Re: vi eats control-Ds in sourced files Message-ID: <3900001@hpirs.HP.COM> Date: 29 Mar 88 00:25:25 GMT References: <10817@mimsy.UUCP> Organization: Hewlett Packard, Cupertino Lines: 23 > Index: ucb/ex/ex_get.c 4.3BSD Fix > > Description: > When vi (ex) reads .exrc files or other sourced files, it > discards control-D. This makes it difficult to map something > to a string that includes a control-D, or to remap ^D itself. > > Repeat-By: > Create a .exrc file with the line > > map! ^D foo > > (that is, map control-D anything). Run vi; note `missing rhs' > error. Is this really a problem that needs fixing? Quote the ctrl-D with a ctrl-V and it works without the fix. The following line entered either interactively or via a .exrc file will accomplish the desired result: map! ^V^D foo Wayne Krone Hewlett-Packard