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

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

RE: using vim as SQL*Plus editor on Windows

From: GBA_DBA <galo.balda_at_gye.on.net.ec>
Date: Mon, 5 Jul 2004 14:11:58 -0500
Message-Id: <200407051912.i65JC0s10768@mail.porta.net>

 

Thank you both Lyubomir and Lex for your replies. I installed Vim 6.3 and now works using vim or gvim.

Regards
GBA
-----Mensaje original-----

De: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] En nombre de Lex de Haan
Enviado el: Lunes, 05 de Julio de 2004 13:08 Para: Oracle-L_at_Freelists. Org
Asunto: using vim as SQL*Plus editor on Windows

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


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 - 14:10:11 CDT

Original text of this message

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