Inserting a control character in a text file?

PJH pjh42 at pobox.com
Thu Sep 13 02:38:58 UTC 2007


Karl Auer wrote:
 > On Wed, 2007-09-12 at 20:38 -0400, Pete Holsberg wrote:
 >
 >> I need to produce a text file that contains the ASCII character ESC
 >> (1BH or 027 decimal). How do I do that with, say, vim?
 >>
 >
 > In insert mode, type CTL-V then ESC. Then ESC again to exit insert mode.
 > You should see "^]" in your text.
 >

Super!

Actually, it was "^[".  :-)

Thx.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070912/674cb766/attachment.html>


More information about the ubuntu-users mailing list