title: How to detect if Vim is running in restricted mode?
body: <p>... or in any mode for that matter.</p>
  
  <p>I just want to prevent some extensions from loading when that is the case, something like:</p>
  
  <pre><code>if ! currentmode('restricted')
       Bundle('some-extension')
  endif
  </code></pre>