diff options
author | Bram Moolenaar <Bram@vim.org> | 2004-06-13 20:20:40 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2004-06-13 20:20:40 +0000 |
commit | 071d4279d6ab81b7187b48f3a0fc61e587b6db6c (patch) | |
tree | 221cbe3c40e043163c06f61c52a7ba2eb41e12ce /runtime/ftplugin/sql.vim | |
parent | b4210b3bc14e2918f153a7307530fbe6eba659e1 (diff) | |
download | vim-git-071d4279d6ab81b7187b48f3a0fc61e587b6db6c.tar.gz |
updated for version 7.0001v7.0001
Diffstat (limited to 'runtime/ftplugin/sql.vim')
-rw-r--r-- | runtime/ftplugin/sql.vim | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/runtime/ftplugin/sql.vim b/runtime/ftplugin/sql.vim new file mode 100644 index 000000000..afbdf555c --- /dev/null +++ b/runtime/ftplugin/sql.vim @@ -0,0 +1,35 @@ +" Vim filetype plugin file +" Language: SQL (Common for Oracle, Microsoft SQL Server, Sybase) +" Version: 0.02 +" Maintainer: David Fishburn <fishburn@ianywhere.com> +" Last Change: Tue May 27 2003 09:33:31 + +" This file should only contain values that are common to all SQL languages +" Oracle, Microsoft SQL Server, Sybase ASA/ASE, MySQL, and so on +" If additional features are required create: +" vimfiles/after/ftplugin/sql.vim +" to override and add any of your own settings + +" Only do this when not done yet for this buffer +if exists("b:did_ftplugin") + finish +endif + +" Don't load another plugin for this buffer +let b:did_ftplugin = 1 + +" Define patterns for the matchit macro +if !exists("b:match_words") + " SQL is generally case insensitive + let b:match_ignorecase = 1 + let b:match_words = + \ '\<begin\>:\<end\>\(;\)\?$,'. + \ '\<if\>:\<elsif\>:\<elseif\>:\<else\>:'. + \ '\%(\<end\s\+\)\@<!' . '\<if\>:\<end\s\+if\>,'. + \ '\<loop\>:\<break\>:\<continue\>:'. + \ '\%(\<end\s\+\)\@<!' . '\<loop\>:\<end\s\+loop\>,'. + \ '\<for\>:\<break\>:\<continue\>:'. + \ '\%(\<end\s\+\)\@<!' . '\<for\>:\<end\s\+for\>,'. + \ '\<case\>:\<when\>:\<default\>:'. + \ '\%(\<end\s\+\)\@<!' . '\<case\>:\<end\s\+case\>' +endif |