From dc41bf9df1d0cb13b2dd3292ad947d76be241d3b Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Thu, 28 Jul 2022 15:22:38 -0400 Subject: [PATCH] update vim submodules --- vim/.vim/bundle/vim-airline | 2 +- vim/.vim/bundle/vim-fugitive | 2 +- vim/.vim/ftplugin/sh.vim | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 vim/.vim/ftplugin/sh.vim 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 +