vi eats control-Ds in sourced files
Wayne Krone
wk at hpirs.HP.COM
Tue Mar 29 10:25:25 AEST 1988
> 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
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list