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