sponsor Vim development Vim logo Vim Book Ad

sqlhana.vim : sqlhana.vim : Syntax file for SAP HANA

 script karma  Rating 4/1, Downloaded by 1422  Comments, bugs, improvements  Vim wiki

created by
David Fishburn
script type
Syntax file for SAP HANA

Supports all SQL elements of the SAP HANA SP6 release build 60.

Assuming you are editing a .sql file (Vim sets the filetype to be SQL), then by default Vim assumes Oracle syntax.

This syntax file works in conjunction with ftplugin/sql.vim, indent/sql.vim and syntax/sql.vim to load the correct SQL dialect.

To change from Oracle syntax to a different SQL dialect you can initiate this by running:
:SQLSetType sqlhana.vim
:SQLSetType <tab key> to cycle through all supported SQL dialects.
:SQLSetType sqlh<tab key> to cycle through all supported SQL dialects starting with "sqlh".

Or to change Vim's default Oracle dialect to HANA you can put the following in your .vimrc:
    let g:sql_type_default = 'sqlhana'

To read more on these options see:
:h sql.txt
install details
Put <sqlhana.vim> into your .vim/syntax or vimfiles/syntax directory  

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
sqlhana.vim SP6 2013-09-25 7.0 David Fishburn Updated for SAP HANA SP6 Build 60
sqlhana.vim SP4 2012-10-17 7.0 David Fishburn Added homepage reference to it's script location on vim.org.
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.