VIM可以自动缩进SQL吗?
问题描述:
" SQL语句缩进良好做法"似乎是可接受的用于编写SQL块的格式.
"SQL Statement indentation good practice" appears to be the accepted format for writing SQL blocks.
是否有一个符合该标准的Vim缩进/语法文件,或者至少是紧密文件?
Is there a Vim indent/syntax file that would adhere to this standard, or at least be close?
目前,我的Vim几乎保留了所有内容,只缩进了某些关键字.
Currently my Vim left alights pretty much everything and only indents certain keywords.
答
" SQLUtilities:SQL实用程序-格式化,生成-列列表,数据库过程"具有SQL Utilities插件,该插件具有功能.还有"如何在Vim中自动格式化和自动大写SQL "是相关的讨论.
"SQLUtilities : SQL utilities - Formatting, generate - columns lists, procedures for databases" has the SQL Utilities plugin, which is capable. And "How to auto-format and auto-capitalize SQL in Vim" is a related discussion.