# HG changeset patch # User Meredith Howard # Date 1568684189 14400 # Node ID f8da8d4ff16abf45577a92e5edb7bbde391ffce0 # Parent fc7e6eaf6a91dd3e3f1eb470755f6d4cef3478ac use shfmt if available diff --git a/.vim/ftplugin/sh.vim b/.vim/ftplugin/sh.vim new file mode 100644 --- /dev/null +++ b/.vim/ftplugin/sh.vim @@ -0,0 +1,3 @@ +if executable('shfmt') + let &l:equalprg = "shfmt -i " . &shiftwidth +endif