1
0
mirror of https://github.com/luzifer/vim.git synced 2024-09-20 03:22:54 +00:00
vim/after/plugin/shfmt.vim

11 lines
194 B
VimL
Raw Normal View History

if exists('g:loaded_shfmt_wrapper')
finish
endif
let g:loaded_shfmt_wrapper = 1
function! SHFmt()
let save_pos = getpos(".")
execute "%!shfmt -s"
call setpos(".", save_pos)
endfunction