In vimlanguage, you can only set parameters for the current buffer using setlocal . However, I need to set a more complex expression than just a literal, which is not possible with setlocal .
I currently have let &formatprg=s:prgpath." ".a:args , but this sets formatprg for all buffers, which I don't want. How can I set formatprg as above only for the current buffer?
source share