my shell and tool configurations
1" .vim/ftplugin/sh.vim
2" formatprg and makeprg config for bash shit
3
4
5" go https://github.com/mvdan/sh#shfmt
6" gggqG
7if executable('shfmt')
8 setlocal formatprg=shfmt
9endif
10
11" cabal or npm https://github.com/koalaman/shellcheck#installing
12" <space>m
13if executable('shellcheck')
14 setlocal makeprg=shellcheck\ -f\ gcc\ %
15 nnoremap <buffer><space>m :silent make! % \| redraw!<cr>
16endif
17