comparison runtime/indent/sql.vim @ 718:7b21554be7a1

updated for version 7.0219
author vimboss
date Thu, 09 Mar 2006 22:27:48 +0000
parents
children 8cd729851562
comparison
equal deleted inserted replaced
717:2fa8cb05b861 718:7b21554be7a1
1 " Vim indent file loader
2 " Language: SQL
3 " Maintainer: David Fishburn <fishburn at ianywhere dot com>
4 " Last Change: Thu Sep 15 2005 10:27:51 AM
5 " Version: 1.0
6 " Download: http://vim.sourceforge.net/script.php?script_id=495
7
8 " Description: Checks for a:
9 " buffer local variable,
10 " global variable,
11 " If the above exist, it will source the type specified.
12 " If none exist, it will source the default sqlanywhere.vim file.
13
14
15 " Only load this indent file when no other was loaded.
16 if exists("b:did_indent")
17 finish
18 endif
19
20 " Default to the standard Vim distribution file
21 let filename = 'sqlanywhere'
22
23 " Check for overrides. Buffer variables have the highest priority.
24 if exists("b:sql_type_override")
25 " Check the runtimepath to see if the file exists
26 if globpath(&runtimepath, 'indent/'.b:sql_type_override.'.vim') != ''
27 let filename = b:sql_type_override
28 endif
29 elseif exists("g:sql_type_default")
30 if globpath(&runtimepath, 'indent/'.g:sql_type_default.'.vim') != ''
31 let filename = g:sql_type_default
32 endif
33 endif
34
35 " Source the appropriate file
36 exec 'runtime indent/'.filename.'.vim'
37
38
39 " vim:sw=4:ff=unix: