Skip to content

Apply SQL syntax highlighting inside a shell script heredoc

Notifications You must be signed in to change notification settings

gamaut/bash-heredoc-sql.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

bash-heredoc-sql.vim
====================

Applies SQL syntax highlighting in shell scripts if the SQL
code is within a heredoc:

Example
-------

    mysql -usomeUser -p <<SQL
        use mydb;
        truncate mytable;
        insert into mytable values (1, 2, 3);
        show warnings;
    SQL

Installation
------------

Add to .vimrc

    Plug 'gamaut/bash-heredoc-sql.vim'

About

Apply SQL syntax highlighting inside a shell script heredoc

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published