title: Set makeprg to VIM function?
body: <p>I'm using VIM to work on Visual Studio solutions, and I have written a function that searches the filesystem upwards from the current file and locates the first *.sln file.</p>
  
  <p>What I want to do is something like this:</p>
  
  <pre><code>function! BuildSLN()
      " FindSLN is my function that locates the sln "
      let slnfile = FindSLN()
      if slnfile != ""
          execute "!devenv " . slnfile . " /Build Debug"
      endif
  endfunction
  
  CompilerSet makeprg=:call BuildSLN()
  </code></pre>
  
  <p>This way, I could use my currently set keybindings for <code>:make</code> to build the solution file.</p>
  
  <p>Is this possible?</p>