wcdawn / vim-SQL-UPPER

Automatically uppercase SQL keywords as you type

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim-SQL-UPPER

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

Installation

MinPlug Jorengarenar/vim-SQL-UPPER
Plug 'Jorengarenar/vim-SQL-UPPER'

Vim's packages

cd ~/.vim/pack/plugins/start
git clone git://github.com/Jorengarenar/vim-SQL-UPPER.git

Usage

When you type an SQL keyword in an SQL file, it will be automatically uppercased after you finish writting it.

Words in comments and strings will be ignored.

Configuration

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

Value Description
1 Keywords from Wikipedia's list of SQL reserved word marked as in SQL:2016
2 All keywords from Wikipedia's list of SQL reserved word
5 Keywords returned by syntaxcomplete#OmniSyntaxList() function
10 Keywords from Drupal's List of SQL reserved words
list You can provide your own list of keywords, e.g. let g:SQL_UPPER = [ "select", "from" ]
* Everything else disables auto-uppering

About

Automatically uppercase SQL keywords as you type


Languages

Language:Vim Script 100.0%