Automatically uppercase SQL keywords as you type
  • Vim Script 100%
Find a file
2025-12-22 05:50:46 +01:00
autoload Update keyword lists 2023-10-14 11:59:31 +02:00
ftplugin Update author 2025-12-22 05:50:46 +01:00
LICENSE Update author 2025-12-22 05:50:46 +01:00
README.md Update README 2025-12-20 07:02:15 +01:00

vim-SQL-UPPER

Uppercase SQL keywords without the need of holding Shift or CAPS LOCK

Installation

vim-plug:

Plug 'https://codeberg.org/Jorenar/vim-SQL-UPPER.git'

Vim's packages

git clone https://codeberg.org/Jorenar/vim-SQL-UPPER.git ~/.vim/pack/plugins/start/vim-SQL-UPPER

Usage

When you type an SQL keyword in an SQL file, it will be automatically upper-cased after you finish writing it.

Words in comments and strings will be ignored.

Configuration

There is one variable, g:SQL_UPPER. Default value is syntax

Value Description
0 Disable auto-uppering
list You can provide your own list of keywords, e.g. let g:SQL_UPPER = [ "select", "from" ]
"syntax" Keywords returned by syntaxcomplete#OmniSyntaxList() function
"drupal" Keywords from Drupal's List of SQL reserved words
"wikipedia_all" All keywords from Wikipedia's list of SQL reserved word
"wikipedia_sql2023" Keywords from Wikipedia's list of SQL reserved word marked as 'In SQL:2023'