Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> using vim as SQL*Plus editor on Windows

using vim as SQL*Plus editor on Windows

From: Lex de Haan <lex.de.haan_at_naturaljoin.nl>
Date: Mon, 5 Jul 2004 20:07:57 +0200
Message-ID: <JFEEIGBIDOCCDALDIPLNCEJOCFAA.lex.de.haan@naturaljoin.nl>


Content-Type: text/plain;

        charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
I remember a recent thread about the above topic, where the issue was that all changed made in the editor were not reflected in the SQL buffer in SQL*Plus. I think I know why:

if you define the _EDITOR as gvim, and you use the EDIT command from SQL*Plus, SQL*Plus first launches a DOS command box and from there the GUI vim window -- but then the DOS box is immediately closed, so SQL*Plus thinks the editing session is over. Just watch the SQL*Plus window: the "SQL>" prompt comes back, while it shouldn't -- it should wait until your editing session is over.

the solution: don't use gvim, but use "regular" vim instead:

SQL> DEFINE _EDITOR='vim -c "set filetype=sql"'

works like a charm, including nice SQL-sensitive coloring... (I am using vim6.3, oracle10g, Windows XP)

Kind regards,
Lex.



visit my website at http://www.naturaljoin.nl

Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
Received on Mon Jul 05 2004 - 13:04:45 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US