issue 4 is neatly fixed, by storing the formatprg in a buffer local
variable, and reloading it on BufEnter,WinEnter