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: silly vi question

Re: silly vi question

From: Richard Ji <richard.c.ji_at_gmail.com>
Date: Mon, 15 Nov 2004 14:10:07 -0500
Message-ID: <b4d52f2041115111030f155ee@mail.gmail.com>


VIM support syntax highlight, but you might need to do the following if your SQL file has a different extension.

mkdir -p .vim/ftdetect
cd .vim/ftdetect/
vi mine.vim
more mine.vim

au BufRead,BufNewFile *.tab     set filetype=sql
au BufRead,BufNewFile *.ops     set filetype=sql
au BufRead,BufNewFile *.opb     set filetype=sql

Richard

On Sat, 13 Nov 2004 15:51:25 -0800, Jared Still <jkstill_at_gmail.com> wrote:
> http://www.vim.org/scripts/script_search_results.php?keywords=oracle&script_type=&order_by=rating&direction=descending&search=search
>
> The latest versions of VIM do just fairly well with SQL by default.
>
> HTH
>
> Jared
>
> On Thu, 11 Nov 2004 21:48:15 -0500, Bob Metelsky
>
>
> <bobmetelsky_at_comcast.net> wrote:
> > ummm
> >
> > does anyone use syntax highlighting for vi or vim? Id like to at least
> > get .oracle- .sql and possible shell scripts. The black and white gets
> > my eyes crossed in a few hours ;-) The syntax highlighting would be a
> > god send!
> >
> > I googled for it but nothing is prominent, so I thought asking here
> > would be more efficient than trying all sorts of things that dont work.
> >
> > Thanks
> > Bob
> >
> > --
> > "Oracle error messages being what they are, do not
> > highlight the correct cause of fault, but will identify
> > some other error located close to where the real fault lies."
> >
> > --
> > http://www.freelists.org/webpage/oracle-l
> >
>
>
> --
> Jared Still
> Certifiable Oracle DBA and Part Time Perl Evangelist
>
>
> --
> http://www.freelists.org/webpage/oracle-l
>

--
http://www.freelists.org/webpage/oracle-l
Received on Mon Nov 15 2004 - 13:14:30 CST

Original text of this message

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