Re: silly vi question

  • From: Richard Ji <richard.c.ji@xxxxxxxxx>
  • To: jkstill@xxxxxxxxx
  • Date: Mon, 15 Nov 2004 14:10:07 -0500

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@xxxxxxxxx> 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@xxxxxxxxxxx> 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."
> >
> > --
> > //www.freelists.org/webpage/oracle-l
> >
> 
> 
> --
> Jared Still
> Certifiable Oracle DBA and Part Time Perl Evangelist
> 
> 
> --
> //www.freelists.org/webpage/oracle-l
>
--
//www.freelists.org/webpage/oracle-l

Other related posts: