sponsor Vim development Vim logo Vim Book Ad

proc.vim : Oracle Pro*C/C++ syntax file

 script karma  Rating 57/27, Downloaded by 2703  Comments, bugs, improvements  Vim wiki

created by
Michael Jarvis
 
script type
syntax
 
description
7-May-2004 Note:  I have recently learned that this syntax is redundant.  You can get the same functionality with esqlc.vim in the standard distribution.

This is a start towards a customization of the C++ syntax, for code that uses the Oracle Pro*C/C++ precompiler code.  Essentially it loads up the C++ syntax file, and then does additional highlighting of text that begins with EXEC SQL.

 
install details
Drop this file into your $HOME/.vim/syntax directory, and then set up the new filetype for *.pc to load proc.vim.  What I did was create the file $HOME/.vim/filetype.vim with these contents:

if exists("did_load_filetypes")
    finish
endif
augroup filetypedetect
    au! BufRead,BufNewFile *.pc     setfiletype proc
augroup END

You can execute ":help new-filetype" for more information.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
proc.vim 0.01 2003-05-22 6.0 Michael Jarvis Initial upload
ip used for rating: 3.15.197.123

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github