" SQL filetype plugin file " Language: SQL " Maintainer: Michael Brailsford " Enhanced By: Hari Krishna Dara " Last Change: 18-Sep-2002 @ 17:34 " Revision: 1.3.0 " Download From: " http://vim.sourceforge.net/script.php?script_id=305 " Description: " Capitalizes the SQL keywords. " Installation: " Place it in your ftplugin directory (under user runtime directory). inoreabbr abort =ReplaceOnlyIfNotInComment('abort', 'ABORT') inoreabbr abstime =ReplaceOnlyIfNotInComment('abstime', 'ABSTIME') inoreabbr access =ReplaceOnlyIfNotInComment('access', 'ACCESS') inoreabbr aclitem =ReplaceOnlyIfNotInComment('aclitem', 'ACLITEM') inoreabbr add =ReplaceOnlyIfNotInComment('add', 'ADD') inoreabbr aggregate =ReplaceOnlyIfNotInComment('aggregate', 'AGGREGATE') inoreabbr all =ReplaceOnlyIfNotInComment('all', 'ALL') inoreabbr alter =ReplaceOnlyIfNotInComment('alter', 'ALTER') inoreabbr analyze =ReplaceOnlyIfNotInComment('analyze', 'ANALYZE') inoreabbr and =ReplaceOnlyIfNotInComment('and', 'AND') inoreabbr any =ReplaceOnlyIfNotInComment('any', 'ANY') inoreabbr as =ReplaceOnlyIfNotInComment('as', 'AS') inoreabbr as =ReplaceOnlyIfNotInComment('as', 'AS') inoreabbr asc =ReplaceOnlyIfNotInComment('asc', 'ASC') inoreabbr audit =ReplaceOnlyIfNotInComment('audit', 'AUDIT') inoreabbr authorization =ReplaceOnlyIfNotInComment('authorization', 'AUTHORIZATION') inoreabbr begin =ReplaceOnlyIfNotInComment('begin', 'BEGIN') inoreabbr between =ReplaceOnlyIfNotInComment('between', 'BETWEEN') inoreabbr bigint =ReplaceOnlyIfNotInComment('bigint', 'BIGINT') inoreabbr bit =ReplaceOnlyIfNotInComment('bit', 'BIT') inoreabbr boolean =ReplaceOnlyIfNotInComment('boolean', 'BOOLEAN') inoreabbr box =ReplaceOnlyIfNotInComment('box', 'BOX') inoreabbr by =ReplaceOnlyIfNotInComment('by', 'BY') inoreabbr bytea =ReplaceOnlyIfNotInComment('bytea', 'BYTEA') inoreabbr cascade =ReplaceOnlyIfNotInComment('cascade', 'CASCADE') inoreabbr char =ReplaceOnlyIfNotInComment('char', 'CHAR') inoreabbr character =ReplaceOnlyIfNotInComment('character', 'CHARACTER') inoreabbr check =ReplaceOnlyIfNotInComment('check', 'CHECK') inoreabbr checkpoint =ReplaceOnlyIfNotInComment('checkpoint', 'CHECKPOINT') inoreabbr cid =ReplaceOnlyIfNotInComment('cid', 'CID') inoreabbr cidr =ReplaceOnlyIfNotInComment('cidr', 'CIDR') inoreabbr circle =ReplaceOnlyIfNotInComment('circle', 'CIRCLE') inoreabbr close =ReplaceOnlyIfNotInComment('close', 'CLOSE') inoreabbr cluster =ReplaceOnlyIfNotInComment('cluster', 'CLUSTER') inoreabbr column =ReplaceOnlyIfNotInComment('column', 'COLUMN') inoreabbr comment =ReplaceOnlyIfNotInComment('comment', 'COMMENT') inoreabbr commit =ReplaceOnlyIfNotInComment('commit', 'COMMIT') inoreabbr compress =ReplaceOnlyIfNotInComment('compress', 'COMPRESS') inoreabbr connect =ReplaceOnlyIfNotInComment('connect', 'CONNECT') inoreabbr constraints =ReplaceOnlyIfNotInComment('constraints', 'CONSTRAINTS') inoreabbr copy =ReplaceOnlyIfNotInComment('copy', 'COPY') inoreabbr cre =ReplaceOnlyIfNotInComment('cre', 'CREATE') inoreabbr create =ReplaceOnlyIfNotInComment('create', 'CREATE') inoreabbr current =ReplaceOnlyIfNotInComment('current', 'CURRENT') inoreabbr cursor =ReplaceOnlyIfNotInComment('cursor', 'CURSOR') inoreabbr database =ReplaceOnlyIfNotInComment('database', 'DATABASE') inoreabbr date =ReplaceOnlyIfNotInComment('date', 'DATE') inoreabbr decimal =ReplaceOnlyIfNotInComment('decimal', 'DECIMAL') inoreabbr declare =ReplaceOnlyIfNotInComment('declare', 'DECLARE') inoreabbr default =ReplaceOnlyIfNotInComment('default', 'DEFAULT') inoreabbr delete =ReplaceOnlyIfNotInComment('delete', 'DELETE') inoreabbr desc =ReplaceOnlyIfNotInComment('desc', 'DESC') inoreabbr distinct =ReplaceOnlyIfNotInComment('distinct', 'DISTINCT') inoreabbr drop =ReplaceOnlyIfNotInComment('drop', 'DROP') inoreabbr else =ReplaceOnlyIfNotInComment('else', 'ELSE') inoreabbr elsif =ReplaceOnlyIfNotInComment('elsif', 'ELSIF') inoreabbr end =ReplaceOnlyIfNotInComment('end', 'END') inoreabbr escape =ReplaceOnlyIfNotInComment('escape', 'ESCAPE') inoreabbr exception =ReplaceOnlyIfNotInComment('exception', 'EXCEPTION') inoreabbr exclusive =ReplaceOnlyIfNotInComment('exclusive', 'EXCLUSIVE') inoreabbr execute =ReplaceOnlyIfNotInComment('execute', 'EXECUTE') inoreabbr exists =ReplaceOnlyIfNotInComment('exists', 'EXISTS') inoreabbr explain =ReplaceOnlyIfNotInComment('explain', 'EXPLAIN') inoreabbr false =ReplaceOnlyIfNotInComment('false', 'FALSE') inoreabbr fetch =ReplaceOnlyIfNotInComment('fetch', 'FETCH') inoreabbr file =ReplaceOnlyIfNotInComment('file', 'FILE') inoreabbr float =ReplaceOnlyIfNotInComment('float', 'FLOAT') inoreabbr for =ReplaceOnlyIfNotInComment('for', 'FOR') inoreabbr foreign =ReplaceOnlyIfNotInComment('foreign', 'FOREIGN') inoreabbr foriegn =ReplaceOnlyIfNotInComment('foriegn', 'FOREIGN') inoreabbr from =ReplaceOnlyIfNotInComment('from', 'FROM') inoreabbr function =ReplaceOnlyIfNotInComment('function', 'FUNCTION') inoreabbr grant =ReplaceOnlyIfNotInComment('grant', 'GRANT') inoreabbr group =ReplaceOnlyIfNotInComment('group', 'GROUP') inoreabbr having =ReplaceOnlyIfNotInComment('having', 'HAVING') inoreabbr identified =ReplaceOnlyIfNotInComment('identified', 'IDENTIFIED') inoreabbr if =ReplaceOnlyIfNotInComment('if', 'IF') inoreabbr immediate =ReplaceOnlyIfNotInComment('immediate', 'IMMEDIATE') inoreabbr in =ReplaceOnlyIfNotInComment('in', 'IN') inoreabbr increment =ReplaceOnlyIfNotInComment('increment', 'INCREMENT') inoreabbr index =ReplaceOnlyIfNotInComment('index', 'INDEX') inoreabbr inet =ReplaceOnlyIfNotInComment('inet', 'INET') inoreabbr initial =ReplaceOnlyIfNotInComment('initial', 'INITIAL') inoreabbr ins =ReplaceOnlyIfNotInComment('ins', 'INSERT') inoreabbr insert =ReplaceOnlyIfNotInComment('insert', 'INSERT') inoreabbr int =ReplaceOnlyIfNotInComment('int', 'INTEGER') inoreabbr int2vector =ReplaceOnlyIfNotInComment('int2vector', 'INT2VECTOR') inoreabbr integer =ReplaceOnlyIfNotInComment('integer', 'INTEGER') inoreabbr intersect =ReplaceOnlyIfNotInComment('intersect', 'INTERSECT') inoreabbr interval =ReplaceOnlyIfNotInComment('interval', 'INTERVAL') inoreabbr into =ReplaceOnlyIfNotInComment('into', 'INTO') inoreabbr is =ReplaceOnlyIfNotInComment('is', 'IS') inoreabbr key =ReplaceOnlyIfNotInComment('key', 'KEY') inoreabbr language =ReplaceOnlyIfNotInComment('language', 'LANGUAGE') inoreabbr level =ReplaceOnlyIfNotInComment('level', 'LEVEL') inoreabbr line =ReplaceOnlyIfNotInComment('line', 'LINE') inoreabbr listen =ReplaceOnlyIfNotInComment('listen', 'LISTEN') inoreabbr load =ReplaceOnlyIfNotInComment('load', 'LOAD') inoreabbr lock =ReplaceOnlyIfNotInComment('lock', 'LOCK') inoreabbr long =ReplaceOnlyIfNotInComment('long', 'LONG') inoreabbr loop =ReplaceOnlyIfNotInComment('loop', 'LOOP') inoreabbr lseg =ReplaceOnlyIfNotInComment('lseg', 'LSEG') inoreabbr macaddr =ReplaceOnlyIfNotInComment('macaddr', 'MACADDR') inoreabbr maxextents =ReplaceOnlyIfNotInComment('maxextents', 'MAXEXTENTS') inoreabbr minus =ReplaceOnlyIfNotInComment('minus', 'MINUS') inoreabbr mlslabel =ReplaceOnlyIfNotInComment('mlslabel', 'MLSLABEL') inoreabbr mode =ReplaceOnlyIfNotInComment('mode', 'MODE') inoreabbr modify =ReplaceOnlyIfNotInComment('modify', 'MODIFY') inoreabbr money =ReplaceOnlyIfNotInComment('money', 'MONEY') inoreabbr move =ReplaceOnlyIfNotInComment('move', 'MOVE') inoreabbr name =ReplaceOnlyIfNotInComment('name', 'NAME') inoreabbr noaudit =ReplaceOnlyIfNotInComment('noaudit', 'NOAUDIT') inoreabbr nocompress =ReplaceOnlyIfNotInComment('nocompress', 'NOCOMPRESS') inoreabbr not =ReplaceOnlyIfNotInComment('not', 'NOT') inoreabbr notify =ReplaceOnlyIfNotInComment('notify', 'NOTIFY') inoreabbr nowait =ReplaceOnlyIfNotInComment('nowait', 'NOWAIT') inoreabbr null =ReplaceOnlyIfNotInComment('null', 'NULL') inoreabbr number =ReplaceOnlyIfNotInComment('number', 'NUMBER') inoreabbr numeric =ReplaceOnlyIfNotInComment('numeric', 'NUMERIC') inoreabbr of =ReplaceOnlyIfNotInComment('of', 'OF') inoreabbr offline =ReplaceOnlyIfNotInComment('offline', 'OFFLINE') inoreabbr oid =ReplaceOnlyIfNotInComment('oid', 'OID') inoreabbr oidvector =ReplaceOnlyIfNotInComment('oidvector', 'OIDVECTOR') inoreabbr on =ReplaceOnlyIfNotInComment('on', 'ON') inoreabbr online =ReplaceOnlyIfNotInComment('online', 'ONLINE') inoreabbr operator =ReplaceOnlyIfNotInComment('operator', 'OPERATOR') inoreabbr option =ReplaceOnlyIfNotInComment('option', 'OPTION') inoreabbr or =ReplaceOnlyIfNotInComment('or', 'OR') inoreabbr order =ReplaceOnlyIfNotInComment('order', 'ORDER') inoreabbr out =ReplaceOnlyIfNotInComment('out', 'OUT') inoreabbr path =ReplaceOnlyIfNotInComment('path', 'PATH') inoreabbr pctfree =ReplaceOnlyIfNotInComment('pctfree', 'PCTFREE') inoreabbr point =ReplaceOnlyIfNotInComment('point', 'POINT') inoreabbr polygon =ReplaceOnlyIfNotInComment('polygon', 'POLYGON') inoreabbr primary =ReplaceOnlyIfNotInComment('primary', 'PRIMARY') inoreabbr prior =ReplaceOnlyIfNotInComment('prior', 'PRIOR') inoreabbr privileges =ReplaceOnlyIfNotInComment('privileges', 'PRIVILEGES') inoreabbr procedure =ReplaceOnlyIfNotInComment('procedure', 'PROCEDURE') inoreabbr public =ReplaceOnlyIfNotInComment('public', 'PUBLIC') inoreabbr raw =ReplaceOnlyIfNotInComment('raw', 'RAW') inoreabbr real =ReplaceOnlyIfNotInComment('real', 'REAL') inoreabbr refcursor =ReplaceOnlyIfNotInComment('refcursor', 'REFCURSOR') inoreabbr references =ReplaceOnlyIfNotInComment('references', 'REFERENCES') inoreabbr refs =ReplaceOnlyIfNotInComment('refs', 'REFERENCES') inoreabbr regproc =ReplaceOnlyIfNotInComment('regproc', 'REGPROC') inoreabbr reindex =ReplaceOnlyIfNotInComment('reindex', 'REINDEX') inoreabbr reltime =ReplaceOnlyIfNotInComment('reltime', 'RELTIME') inoreabbr rename =ReplaceOnlyIfNotInComment('rename', 'RENAME') inoreabbr reset =ReplaceOnlyIfNotInComment('reset', 'RESET') inoreabbr resource =ReplaceOnlyIfNotInComment('resource', 'RESOURCE') inoreabbr return =ReplaceOnlyIfNotInComment('return', 'RETURN') inoreabbr revoke =ReplaceOnlyIfNotInComment('revoke', 'REVOKE') inoreabbr rollback =ReplaceOnlyIfNotInComment('rollback', 'ROLLBACK') inoreabbr row =ReplaceOnlyIfNotInComment('row', 'ROW') inoreabbr rowid =ReplaceOnlyIfNotInComment('rowid', 'ROWID') inoreabbr rowlabel =ReplaceOnlyIfNotInComment('rowlabel', 'ROWLABEL') inoreabbr rownum =ReplaceOnlyIfNotInComment('rownum', 'ROWNUM') inoreabbr rows =ReplaceOnlyIfNotInComment('rows', 'ROWS') inoreabbr rule =ReplaceOnlyIfNotInComment('rule', 'RULE') inoreabbr savepoint =ReplaceOnlyIfNotInComment('savepoint', 'SAVEPOINT') inoreabbr select =ReplaceOnlyIfNotInComment('select', 'SELECT') inoreabbr sequence =ReplaceOnlyIfNotInComment('sequence', 'SEQUENCE') inoreabbr serial =ReplaceOnlyIfNotInComment('serial', 'SERIAL') inoreabbr session =ReplaceOnlyIfNotInComment('session', 'SESSION') inoreabbr set =ReplaceOnlyIfNotInComment('set', 'SET') inoreabbr share =ReplaceOnlyIfNotInComment('share', 'SHARE') inoreabbr show =ReplaceOnlyIfNotInComment('show', 'SHOW') inoreabbr size =ReplaceOnlyIfNotInComment('size', 'SIZE') inoreabbr smallint =ReplaceOnlyIfNotInComment('smallint', 'SMALLINT') inoreabbr smgr =ReplaceOnlyIfNotInComment('smgr', 'SMGR') inoreabbr some =ReplaceOnlyIfNotInComment('some', 'SOME') inoreabbr start =ReplaceOnlyIfNotInComment('start', 'START') inoreabbr successful =ReplaceOnlyIfNotInComment('successful', 'SUCCESSFUL') inoreabbr synonym =ReplaceOnlyIfNotInComment('synonym', 'SYNONYM') inoreabbr sysdate =ReplaceOnlyIfNotInComment('sysdate', 'SYSDATE') inoreabbr table =ReplaceOnlyIfNotInComment('table', 'TABLE') inoreabbr text =ReplaceOnlyIfNotInComment('text', 'TEXT') inoreabbr then =ReplaceOnlyIfNotInComment('then', 'THEN') inoreabbr tid =ReplaceOnlyIfNotInComment('tid', 'TID') inoreabbr timestamp =ReplaceOnlyIfNotInComment('timestamp', 'TIMESTAMP') inoreabbr tinterval =ReplaceOnlyIfNotInComment('tinterval', 'TINTERVAL') inoreabbr to =ReplaceOnlyIfNotInComment('to', 'TO') inoreabbr trans =ReplaceOnlyIfNotInComment('trans', 'TRANSACTION') inoreabbr transaction =ReplaceOnlyIfNotInComment('transaction', 'TRANSACTION') inoreabbr trigger =ReplaceOnlyIfNotInComment('trigger', 'TRIGGER') inoreabbr true =ReplaceOnlyIfNotInComment('true', 'TRUE') inoreabbr truncate =ReplaceOnlyIfNotInComment('truncate', 'TRUNCATE') inoreabbr type =ReplaceOnlyIfNotInComment('type', 'TYPE') inoreabbr type =ReplaceOnlyIfNotInComment('type', 'TYPE') inoreabbr uid =ReplaceOnlyIfNotInComment('uid', 'UID') inoreabbr union =ReplaceOnlyIfNotInComment('union', 'UNION') inoreabbr unique =ReplaceOnlyIfNotInComment('unique', 'UNIQUE') inoreabbr unknown =ReplaceOnlyIfNotInComment('unknown', 'UNKNOWN') inoreabbr unlisten =ReplaceOnlyIfNotInComment('unlisten', 'UNLISTEN') inoreabbr update =ReplaceOnlyIfNotInComment('update', 'UPDATE') inoreabbr user =ReplaceOnlyIfNotInComment('user', 'USER') inoreabbr using =ReplaceOnlyIfNotInComment('using', 'USING') inoreabbr vacuum =ReplaceOnlyIfNotInComment('vacuum', 'VACUUM') inoreabbr validate =ReplaceOnlyIfNotInComment('validate', 'VALIDATE') inoreabbr values =ReplaceOnlyIfNotInComment('values', 'VALUES') inoreabbr varchar =ReplaceOnlyIfNotInComment('varchar', 'VARCHAR') inoreabbr varchar2 =ReplaceOnlyIfNotInComment('varchar2', 'VARCHAR2') inoreabbr varray =ReplaceOnlyIfNotInComment('varray', 'VARRAY') inoreabbr view =ReplaceOnlyIfNotInComment('view', 'VIEW') inoreabbr whenever =ReplaceOnlyIfNotInComment('whenever', 'WHENEVER') inoreabbr where =ReplaceOnlyIfNotInComment('where', 'WHERE') inoreabbr with =ReplaceOnlyIfNotInComment('with', 'WITH') inoreabbr xid =ReplaceOnlyIfNotInComment('xid', 'XID') function! s:ReplaceOnlyIfNotInComment(original, replacement) if synIDtrans(synID(line("."), col(".") - 1, 0)) != hlID('Comment') let word = a:replacement else let word = a:original endif return word endfunction