<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Text Editing on Oracle Scripts</title><link>https://www.oraclescripts.com/tags/text-editing/</link><description>Recent content in Text Editing on Oracle Scripts</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>OracleScripts.com</copyright><lastBuildDate>Sat, 20 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.oraclescripts.com/tags/text-editing/index.xml" rel="self" type="application/rss+xml"/><item><title>Insert Control Characters in vi with Ctrl-V for Oracle Prompts</title><link>https://www.oraclescripts.com/post/vi-insert-control-character-oracle-prompt/</link><pubDate>Sat, 20 Jun 2026 00:00:00 +0000</pubDate><guid>https://www.oraclescripts.com/post/vi-insert-control-character-oracle-prompt/</guid><description>
&lt;h2 id="insert-control-characters-in-vi-with-ctrl-v-for-oracle-prompts"&gt;Insert Control Characters in vi with Ctrl-V for Oracle Prompts&lt;/h2&gt;
&lt;h2 id="purpose"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;A custom SQL*Plus prompt that prints the connected instance name in colour, or a login script that clears the screen before the banner, both need one thing the keyboard cannot type directly: a literal control character embedded in the file. Press &lt;code&gt;Esc&lt;/code&gt; while editing and vi leaves insert mode. Press &lt;code&gt;Enter&lt;/code&gt; and vi opens a new line instead of writing a carriage return into the buffer. The control codes a terminal escape sequence is built from are exactly the keys vi reserves for its own commands, so typing them does the wrong thing.&lt;/p&gt;</description></item></channel></rss>