2nd attempt to solve issue #4 more nicely

This commit is contained in:
Chiel92 2013-01-26 21:13:50 +01:00
parent 3058e526ba
commit 0a1f41399d

View File

@ -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