gamaut / bash-heredoc-sql.vim

Apply SQL syntax highlighting inside a shell script heredoc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Vim Script 100.0%