1
0
Fork 0
mirror of https://github.com/luzifer/vim.git synced 2024-12-21 02:41:20 +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