<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Editor on Oracle Scripts</title><link>https://www.oraclescripts.com/tags/editor/</link><description>Recent content in Editor on Oracle Scripts</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>OracleScripts.com</copyright><lastBuildDate>Sat, 23 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.oraclescripts.com/tags/editor/index.xml" rel="self" type="application/rss+xml"/><item><title>Disable vi Autoindent Before Pasting SQL Scripts on Oracle Hosts</title><link>https://www.oraclescripts.com/post/vi-disable-autoindent-pasting-sql/</link><pubDate>Sat, 23 May 2026 00:00:00 +0000</pubDate><guid>https://www.oraclescripts.com/post/vi-disable-autoindent-pasting-sql/</guid><description>
&lt;h2 id="disable-vi-autoindent-before-pasting-sql-scripts-on-oracle-hosts"&gt;Disable vi Autoindent Before Pasting SQL Scripts on Oracle Hosts&lt;/h2&gt;
&lt;h2 id="purpose"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;Pasting a SQL script copied from email, a Confluence page, or a ticket comment into a vi buffer over SSH — and watching every line shift one indent right of the previous one — is the most common and most frustrating vi failure mode an Oracle DBA encounters. The script that ran fine when executed directly from the wiki snippet now fails on the host with &lt;code&gt;SP2-0042: unknown command &amp;quot; INSERT&amp;quot;&lt;/code&gt; on every line. The cause is &lt;code&gt;autoindent&lt;/code&gt;: vi assumed each new line should match the indentation of the previous one, and the terminal cannot distinguish a real keypress from a pasted character, so the indent compounds.&lt;/p&gt;</description></item></channel></rss>