diff --git a/vim/.vim/bundle/vim-airline b/vim/.vim/bundle/vim-airline index 91b67e3..ebb89a0 160000 --- a/vim/.vim/bundle/vim-airline +++ b/vim/.vim/bundle/vim-airline @@ -1 +1 @@ -Subproject commit 91b67e3ca2d7bc66544724f9c702265c564a1f2e +Subproject commit ebb89a0846ff8b8bc64579155d661b825f97d3f2 diff --git a/vim/.vim/bundle/vim-fugitive b/vim/.vim/bundle/vim-fugitive index ff04324..66a921b 160000 --- a/vim/.vim/bundle/vim-fugitive +++ b/vim/.vim/bundle/vim-fugitive @@ -1 +1 @@ -Subproject commit ff04324bffd86f9c146cc5fc2c0a2f95a1509643 +Subproject commit 66a921bbe38bea19f6b581c8a56d5a8a41209e35 diff --git a/vim/.vim/ftplugin/sh.vim b/vim/.vim/ftplugin/sh.vim new file mode 100644 index 0000000..fc9343b --- /dev/null +++ b/vim/.vim/ftplugin/sh.vim @@ -0,0 +1,17 @@ +" .vim/ftplugin/sh.vim +" formatprg and makeprg config for bash shit + + +" go https://github.com/mvdan/sh#shfmt +" gggqG +if executable('shfmt') + setlocal formatprg=shfmt +endif + +" cabal or npm https://github.com/koalaman/shellcheck#installing +" m +if executable('shellcheck') + setlocal makeprg=shellcheck\ -f\ gcc\ % + nnoremap m :silent make! % \| redraw! +endif +