.vim/ftplugin/sh.vim

Fri, 15 Nov 2019 21:50:50 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 15 Nov 2019 21:50:50 -0500
changeset 820
9363e3a29dba
parent 788
f8da8d4ff16a
child 824
7f5db423524e
permissions
-rw-r--r--

this is simpler

788
f8da8d4ff16a use shfmt if available
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 if executable('shfmt')
f8da8d4ff16a use shfmt if available
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 let &l:equalprg = "shfmt -i " . &shiftwidth
f8da8d4ff16a use shfmt if available
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3 endif

mercurial