sponsor Vim development Vim logo Vim Book Ad

sql_iabbr 2 : convert SQL keywords uppercase automatically.

 script karma  Rating 11/5, Downloaded by 598    Comments, bugs, improvements  Vim wiki

created by
Caleb Cushing
script type
With this ftplugin you can type "create table foo (foo_id int);" and get "CREATE TABLE foo (foo_id INT);".  It is based on both sql.vim and the output from postgresql's \dT command while in psql.  That makes it a tad bit tailored to postgresql, but it will work with any SQL compliant dbms.

I probably won't upload every update I make immediately so the most current version may be found on github.

earlier versions of this plugin are here http://www.vim.org/scripts/script.php?script_id=305 I am unable to contact Michael Brailsford so have forked the script with my changes. Changes have currently amounted to adding reserved words that weren't present.
install details
copy to ~/.vim/ftplugin/sql, and you're good to go.  

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
sql_iabbr.vim 2.0.1 2008-10-19 6.0 Caleb Cushing just updating download urls and version.
sql_iabbr.vim 2.0.0 2008-10-19 6.0 Caleb Cushing Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
SourceForge.net Logo