diff --git a/vim-shfmt/shfmt.vim b/vim-shfmt/shfmt.vim index 23c1096..168299e 100644 --- a/vim-shfmt/shfmt.vim +++ b/vim-shfmt/shfmt.vim @@ -1,9 +1,15 @@ +""""""""""""""""""""""""""""""""" +" shfmt-specific defaults " +" from webinstall.dev/vim-shfmt " +""""""""""""""""""""""""""""""""" + +" Change Log +" +" 2023-03-06: +" - remove explicit file extension detection +" (this now works as expected by default) + + " 4 indents, Space between redirects, Indented case statements, Simplified let g:shfmt_extra_args = '-i 4 -sr -ci -s' let g:shfmt_fmt_on_save = 1 - -augroup LocalShell - autocmd! - - autocmd BufWritePre *.sh,*.bash Shfmt -augroup END