dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 103b248f3175743cb1aa81561266364e52acd934
parent 98a72b5ad8af75fdc2b3e17f4768991d1f789208
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed,  3 Oct 2018 14:44:49 +0200

Add (postgre)SQL plugins

Diffstat:
Mlinks/.vim/plugins.vim | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/links/.vim/plugins.vim b/links/.vim/plugins.vim @@ -94,6 +94,15 @@ Plug 'anders-dc/vim-scholarref' " search bibtex refs from web " Vimscript Plug 'junegunn/vader.vim' " testing framework +" SQL +Plug 'lifepillar/pgsql.vim' " PostgreSQL highlighting and syntax +Plug 'ivalkeen/vim-simpledb' " PostgreSQL/MySQL execution from vim buffer + " add following to top of .sql file: + " -- -h localhost -U postgres -d my_database + " <Enter>: execute entire file + " <leader><Enter>: execute current block + " <Enter>: execute current visual selection + call plug#end() " Initialize plugin system @@ -157,3 +166,6 @@ let g:indentLine_char = '▏' " ignore .gitignore files from ctags let g:gutentags_file_list_command = 'rg --files' + +" set postgresql syntax as default for sql files +lset g:sql_type_default = 'pgsql'