Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/babarot/vim-sqlfmt
A plugin for SQL formatter like gofmt
https://github.com/babarot/vim-sqlfmt
formatter sql vim
Last synced: 22 days ago
JSON representation
A plugin for SQL formatter like gofmt
- Host: GitHub
- URL: https://github.com/babarot/vim-sqlfmt
- Owner: babarot
- Created: 2016-11-24T08:18:29.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-08-15T02:32:59.000Z (over 5 years ago)
- Last Synced: 2024-05-02T02:18:34.552Z (7 months ago)
- Topics: formatter, sql, vim
- Language: Vim script
- Homepage:
- Size: 3.91 KB
- Stars: 18
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
vim-sqlfmt
==========A plugin for SQL formatter like gofmt
## Installation
With [vim-plug](https://github.com/junegunn/vim-plug),
```vim
Plug 'b4b4r07/vim-sqlfmt'
```Requirement:
Available plugins | Paste on your `.vimrc`
---|---
[jackc/sqlfmt](https://github.com/jackc/sqlfmt) |let g:sqlfmt_command = "sqlfmt"
let g:sqlfmt_options = ""
[andialbrecht/sqlparse](https://github.com/andialbrecht/sqlparse) |let g:sqlfmt_command = "sqlformat"
let g:sqlfmt_options = "-r -k upper"
... | ...## Usage
Run `:w` to format automatically. If you set `g:sqlfmt_auto` to 0, this behavior will be disabled.
It can also be executed directly as follows:
```vim
:SQLFmt [files...]
```## License
MIT
## Author
b4b4r07