Say that I have a compiler/foo.vim compiler file. Next, I want to define a command that changes compiler, runs it and changes the compiler back to the original.
For example:
command! MyCommand { var previous_compiler = ???? # save info about the current compiler. How?! compiler foo silent make execute "compiler " .. previous_compiler copen }