codekingpro/portable-devtools
115k
1" Vim syntax file loader2" Language: SQL3" Maintainer: David Fishburn <fishburn at ianywhere dot com>4" Last Change: Thu Sep 15 2005 10:30:02 AM5" Version: 1.06 7" Description: Checks for a:8" buffer local variable,9" global variable,10" If the above exist, it will source the type specified.11" If none exist, it will source the default sql.vim file.12"13" quit when a syntax file was already loaded14if exists("b:current_syntax")15 finish16endif17 18" Default to the standard Vim distribution file19let filename = 'sqloracle'20 21" Check for overrides. Buffer variables have the highest priority.22if exists("b:sql_type_override")23 " Check the runtimepath to see if the file exists24 if globpath(&runtimepath, 'syntax/'.b:sql_type_override.'.vim') != ''25 let filename = b:sql_type_override26 endif27elseif exists("g:sql_type_default")28 if globpath(&runtimepath, 'syntax/'.g:sql_type_default.'.vim') != ''29 let filename = g:sql_type_default30 endif31endif32 33" Source the appropriate file34exec 'runtime syntax/'.filename.'.vim'35 36" vim:sw=4:37 