diff --git a/plugin/autoformat.vim b/plugin/autoformat.vim index e55bd17..2a26eb1 100644 --- a/plugin/autoformat.vim +++ b/plugin/autoformat.vim @@ -30,6 +30,10 @@ function! g:FindFormatter(name, args) if executable(s:prgpath) let &formatprg=s:prgpath." ".a:args + let w:formatprg=&formatprg + let t:formatprg=&formatprg + let b:formatprg=&formatprg endif endfunction +"TODO: Now when buffer/window/tab changes, reload formatprg from the vars