Mercurial > vim
comparison runtime/doc/ft_sql.txt @ 27903:d19b7aee1925
Update runtime files.
Commit: https://github.com/vim/vim/commit/c51cf0329809c7ae946c59d6f56699227efc9d1b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 26 12:25:45 2022 +0000
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 26 Feb 2022 13:30:04 +0100 |
parents | e69e7133c9cf |
children | 6dd88e45d47d |
comparison
equal
deleted
inserted
replaced
27902:8481c8908b5e | 27903:d19b7aee1925 |
---|---|
107 objects. Depends on which database vendor you are using, the list of objects | 107 objects. Depends on which database vendor you are using, the list of objects |
108 must be configurable. The filetype plugin attempts to define many of the | 108 must be configurable. The filetype plugin attempts to define many of the |
109 standard objects, plus many additional ones. In order to make this as | 109 standard objects, plus many additional ones. In order to make this as |
110 flexible as possible, you can override the list of objects from within your | 110 flexible as possible, you can override the list of objects from within your |
111 |vimrc| with the following: > | 111 |vimrc| with the following: > |
112 let g:ftplugin_sql_objects = 'function,procedure,event,table,trigger' . | 112 let g:ftplugin_sql_objects = 'function,procedure,event,table,trigger' .. |
113 \ ',schema,service,publication,database,datatype,domain' . | 113 \ ',schema,service,publication,database,datatype,domain' .. |
114 \ ',index,subscription,synchronization,view,variable' | 114 \ ',index,subscription,synchronization,view,variable' |
115 | 115 |
116 The following |Normal| mode and |Visual| mode maps have been created which use | 116 The following |Normal| mode and |Visual| mode maps have been created which use |
117 the above list: > | 117 the above list: > |
118 ]} move forward to the next 'create <object name>' | 118 ]} move forward to the next 'create <object name>' |
129 end; | 129 end; |
130 | 130 |
131 create index i1 on t1 (c1); | 131 create index i1 on t1 (c1); |
132 | 132 |
133 The default setting for g:ftplugin_sql_objects is: > | 133 The default setting for g:ftplugin_sql_objects is: > |
134 let g:ftplugin_sql_objects = 'function,procedure,event,' . | 134 let g:ftplugin_sql_objects = 'function,procedure,event,' .. |
135 \ '\\(existing\\\\|global\\s\\+temporary\\s\\+\\)\\\{,1}' . | 135 \ '\\(existing\\\\|global\\s\\+temporary\\s\\+\\)\\\{,1}' .. |
136 \ 'table,trigger' . | 136 \ 'table,trigger' .. |
137 \ ',schema,service,publication,database,datatype,domain' . | 137 \ ',schema,service,publication,database,datatype,domain' .. |
138 \ ',index,subscription,synchronization,view,variable' | 138 \ ',index,subscription,synchronization,view,variable' |
139 | 139 |
140 The above will also handle these cases: > | 140 The above will also handle these cases: > |
141 create table t1 ( | 141 create table t1 ( |
142 ... | 142 ... |