I am not sure about vi, but emacs has very nice facilities for that
-- the normal key binding is control-q and then the character such as
control-l. Also, you can type any octal digits after the control-q
and they will go in.
--
John Covici
covici at ccs.covici.com